From: Simon Wright <simon@pushface.org>
Subject: Re: Advice on abort
Date: Sun, 06 Nov 2005 20:08:39 +0000
Date: 2005-11-06T20:08:39+00:00 [thread overview]
Message-ID: <m27jbla69k.fsf@grendel.local> (raw)
In-Reply-To: g_nbf.137276$7b6.53828@twister.nyroc.rr.com
"REH" <me@you.com> writes:
> "Simon Wright" <simon@pushface.org> wrote in message
> news:m2br0y9g9w.fsf@grendel.local...
>> "REH" <me@you.com> writes:
>>
>>> That's fine. We are VxWorks too. Besides, a return of 0 on a read
>>> is not considered "successful" with sockets. It means the socket
>>> has been closed. You got an exception on the next read, because you
>>> were trying to read from a closed socket.
>>
>> Yes -- but the bug didn't show on Windows because of the different OS
>> behaviour.
>
> I don't understand. What bug? A return of 0 is not a bug. I don't think
> you've encountered different OS behavior. winsock will also return 0 from
> read when a socket closes. If I understand you correctly, you've
> encountered a particular behavior with GNAT on Windows, not Windows itself.
> Or I may have completely misunderstood what you were saying.
The bug in our software where we didn't check the length returned.
Mind, I too think that we should have seen a return of 0 under
Windows, and I am completely convinced (but the evidence isn't on this
machine) that we didn't. We should see an End_Error from String'Input
but instead we se a Socket_Error with 'connection reset by peer'.
You could be right that it's a GNAT thing, but the GNAT code looks
identical in this area.
next prev parent reply other threads:[~2005-11-06 20:08 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-11-04 15:25 Advice on abort REH
2005-11-04 17:15 ` Marc A. Criley
2005-11-04 18:21 ` Dmitry A. Kazakov
2005-11-04 18:35 ` REH
2005-11-05 18:33 ` Simon Wright
2005-11-05 21:23 ` REH
2005-11-06 11:17 ` Simon Wright
2005-11-06 13:58 ` REH
2005-11-06 20:08 ` Simon Wright [this message]
2005-11-06 20:41 ` REH
2005-11-07 14:55 ` Poul-Erik Andreasen
2005-11-07 17:09 ` REH
2005-11-07 18:03 ` Dmitry A. Kazakov
2005-11-08 14:54 ` Poul-Erik Andreasen
2005-11-08 16:14 ` Dmitry A. Kazakov
2005-11-08 16:42 ` Marc A. Criley
2005-11-08 16:59 ` Poul-Erik Andreasen
2005-11-08 20:05 ` Dmitry A. Kazakov
2005-11-09 14:12 ` Poul-Erik Andreasen
2005-11-09 17:14 ` Dmitry A. Kazakov
2005-11-08 16:32 ` Marc A. Criley
2005-11-08 14:35 ` Poul-Erik Andreasen
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox