tcp socket delay
tcp socket delay
- Subject: tcp socket delay
- From: Michael Marti <email@hidden>
- Date: Wed, 30 Oct 2002 16:05:46 +0000
Dear list
I'm having a problem with tcp sockets under mac os 10.2.
The connection is normaly working and I can transmit data trough it.
On the server side I have the socket bound to a specific port (15001) and
use select to listen for incoming connection requests. The server uses
always the same port.
On the client side I use connect (2) to connect to the server, transmit some
data and then close the connection (and exit the program).
Normally the connection is established very fast. The problem is, that
sometimes it takes about 2 minutes to establish the connection.
I checked with getsockname (2) that on the server side the connection is set
up properly (port 15001, ip 0) and that select (2) is listening on it
(socket is set in readfds).
With tcpdump (1) I can see that the client is sending connection requests to
the server (see end of this message), so I think the problem is not on the
client side.
I don't understand what I am doing wrong.
I would like to use the socket option SO_DEBUG, but I don't know where the
debug information are written to. (it's supposed to be in the kernel log,
but where is that?)
I would really appreciate your help!
Best regards Michael Marti.
--------------------------------------------
15:53:56.381263 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460,nop,wscale
0,nop,nop,timestamp 2612369 0> (DF)
15:53:59.174780 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460,nop,wscale
0,nop,nop,timestamp 2612374 0> (DF)
15:54:02.175034 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460,nop,wscale
0,nop,nop,timestamp 2612380 0> (DF)
15:54:05.175477 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460> (DF)
15:54:08.175945 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460> (DF)
15:54:11.176924 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460> (DF)
15:54:17.177425 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460> (DF)
15:54:29.179098 epp02.epp.ist.utl.pt.1023 > agamemnon.epp.ist.utl.pt.15001:
S 1879446430:1879446430(0) win 32768 <mss 1460> (DF)
_______________________________________________
macnetworkprog mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/macnetworkprog
Do not post admin requests to the list. They will be ignored.