chandu valesh wrote:

> The receiver side application respond to the request, but the TCP layer on
> receiver did not sent the packet( application data packet size is 120
> bytes) on the network but delayed till the next data packet from the
> application is sent out (next data is sent after 6 sec) this information i
> got from application level traces ( I feel the application data is buffered
> some where in the TCP layer). Now the previous response and the new
> application data are sent in the same segment of the TCP. This is not
> happening every time, but happening some times. Are there any parameters
> that will effect this behavior ( buffering of the application data etc)?
> 
> What can be wrong?

Nothing is wrong.  TCP is a stream oriented protocol, not a datagram
oriented protocol.  You can increase the likelihood that data will
be sent by disabling the Nagle algorithm on the socket (TCP_NODELAY).
See "How do I use TCP_NODELAY":
        http://www.unixguide.net/network/socketfaq/2.16.shtml and also

See also "How can I force a socket to send the data in its buffer?"
for a further discussion of what is happening:
        http://www.unixguide.net/network/socketfaq/2.11.shtml

Drew

_______________________________________________
networking-discuss mailing list
[email protected]

Reply via email to