Networking Forums

Networking Forums > Computer Networking > Linux Networking > TCP keep-alive mode when it goes into?

Reply
Thread Tools Display Modes

TCP keep-alive mode when it goes into?

 
 
google-rambo88
Guest
Posts: n/a

 
      06-22-2007, 07:12 AM
I want to send big image data from linux box to windows client..

From Linux server socket , it just send

while ( end of file )
{
write ( clientfd ... )
}

On the client , it just receive...

while ( read (socketfd , , ) ) ;


Normally, it send whole data to windows clients...
but , it sometimes , it entered to KEEP-ALIVE mode even though it is
not end of image data ..
and stop its sending... just keep only TCP connection..


I don't know why it goes into KEPP-ALIVE mode?
When I capture TCP packet , I can see follwings...


No Time source Desti Protocol Info
6514 27.04555 x y TCP [TCP Keep-Alive]
5001 > 4656 [ACK] seq=5560059 ACk=0 Win=5840


Have a nice day.


 
Reply With Quote
 
 
 
 
Robert Harris
Guest
Posts: n/a

 
      06-22-2007, 07:54 AM
google-rambo88 wrote:
> I want to send big image data from linux box to windows client..
>
> From Linux server socket , it just send
>
> while ( end of file )
> {
> write ( clientfd ... )
> }
>
> On the client , it just receive...
>
> while ( read (socketfd , , ) ) ;


You cannot assume that read() and write() respectively read and write
the complete byte count that you specify for a TCP socket; you have to
monitor the return values.

Robert

> [snip]

 
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
NAT keep alive ip_conntrack Andreas Mueller Linux Networking 0 05-02-2009 01:51 PM
Kids Eye View About To Come Alive! jmgconsultants Broadband 2 09-25-2006 07:52 PM
Idle Timeout/Keep alive Chris Watts Broadband 4 11-14-2005 03:50 PM
How to keep alive when in standby Brian Wireless Internet 1 11-13-2003 07:46 PM
[UK-Bug] We're ALIVE ! Andy Jenkins Broadband 14 10-25-2003 12:01 AM



1 2 3 4 5 6 7 8 9 10 11