From: sairam MP Date: 2007-03-29T14:34:00+09:00 Subject: Re: How to Distinguish between a Reset packet and a Normal o > It is a common misunderstanding about TCP that if the sender > writes 100 bytes that the receiver will read 100 bytes. That is, > that the writes of the sender and the reads of the receiver are > always 'paired up'. This is not the way TCP works. Message > boundaries are not preserved across a TCP stream nor does > each call to 'write' correspond to a single packet on the wire. > TCP can coalesce multiple writes into a single packet and can > also split a single write into multiple packets. > > > Gary Wright I found that whenever a Reset Packet while data transfer an Exception is raised (Error::ECONNRESET), I think this can be useful. -- Posted via http://www.ruby-forum.com/.