Menu

#22 xSocket connection is creating multiple socket level connections, Why?

2.2
open
grro
None
8
2013-07-31
2013-07-31
Harish N
No

I have written a simple java nio program like the below.

public static void main(String[] args) throws IOException, InterruptedException {

    INonBlockingConnection connection = new NonBlockingConnection("127.0.0.1",1001);

    Thread.sleep(900000L);

}

This code creates 7 connections to port from 1582 to 1588

I want to understand why it creates 7 connections,

I use JDK 1.7 and operating system windows 7.

PFA In the image only the 7 highlighted connections are of interest which are created by the client.

One connection 1 entry marked with blue is the server port.

1 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB