From: "Khosla, Deepak" <DKhosla@Compaq.com>
To: "'Sergey Okhapkin'" <sos@prospect.com.ru>,
"'gnu-win32@cygnus.com'" <gnu-win32@cygnus.com>,
"'Tim Newsham'" <newsham@aloha.net>
Subject: RE: corruption in socket layer?
Date: Tue, 07 Oct 1997 12:32:00 -0000 [thread overview]
Message-ID: <c=US%a=_%p=COMPAQ%l=EXCHOU-CA020-971007164729Z-15304@exchou-conn02.im.hou.compaq.com> (raw)
We ran into a similar (yet different) problem - with WINSOCK you
cannot guarantee that on a close all the data is flushed. You better
do some application level handshaking. We saw that even if we did a
close with a timeout period, the lower level never told you whether
the timeout expired or whether the data was actually sent. It appears
that the state goes to FIN_WAIT even though a FIN has not been sent
out and then a close is successful!. The condition we saw this in was
if the remote had set the window size to zero while at the same time
we had only enough data left that would fit in the internal TCP
buffers. We would do a close, it would return successful and we would
go on trying to establish a new connection to the same remote and it
would send a reset back since from its point of view, the previous
session was alive.
The bug was reported to MS a few months back - no response other than
that's how Winsock works :-)
Regards
Deepak Khosla
281-514-9234
DKhosla@compaq.com
-----Original Message-----
From: Sergey Okhapkin [SMTP:sos@prospect.com.ru]
Sent: Tuesday, October 07, 1997 3:06 AM
To: gnu-win32@cygnus.com; 'Tim Newsham'
Subject: RE: corruption in socket layer?
Tim Newsham wrote:
> What I'm seeing is the tcp/ip stack behave improperly at
> times. For example sometimes a close() happens and not
> FIN is sent out. Instead the connection is silently placed
> into the closed state. On the next incoming packet from
> the remote, the local TCP stack sends out an RST.
>
> I see this behaviour in all the cygwin.dll's I have tried
> it on, and am guessing that this problem has existed in
> all versions of the dll (possibly a winsock bug).
>
Would you like to write a win32 native test suite for a problem not
using cygwin.dll?
--
Sergey Okhapkin, http://www.lexa.ru/sos
Moscow, Russia
Looking for a job.
-
For help on using this list (especially unsubscribing), send a message
to
"gnu-win32-request@cygnus.com" with one line of text: "help".
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".
next reply other threads:[~1997-10-07 12:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-10-07 12:32 Khosla, Deepak [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-10-10 15:04 corruption in socket layer?] Jim Thompson
1997-10-09 15:19 corruption in socket layer? Colin Peters
1997-10-07 0:07 Sergey Okhapkin
1997-10-07 12:32 ` Tim Newsham
1997-10-06 14:47 Tim Newsham
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='c=US%a=_%p=COMPAQ%l=EXCHOU-CA020-971007164729Z-15304@exchou-conn02.im.hou.compaq.com' \
--to=dkhosla@compaq.com \
--cc=gnu-win32@cygnus.com \
--cc=newsham@aloha.net \
--cc=sos@prospect.com.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).