[Common-dev] Fwd: Re: Crash in CHXSocket. (when writing to a closed socket.)
Tom Marshall tmarshall at helixcommunity.orgOn Thu, Sep 23, 2004 at 04:36:11PM -0700, Liam Murray wrote: > > This avoids the crash. How does Write() behave when you write to a closed > socket? Does it return an error code? It seems writing after close should > be an error. I suspect that write(), and therefore hx_write(), would return either (WSA)EBADF or (WSA)ENOTSOCK. But I haven't actually tried. -- Give a man a fish, and you feed him for a day. Tell him he should learn how to fish himself, and he'll hate you for a lifetime. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Digital signature Url : http://lists.helixcommunity.org/pipermail/common-dev/attachments/20040923/6b615780/attachment.bin