Re: socket write(2) after remote shutdown(2) problem ?

From: David S. Miller (davem@redhat.com)
Date: Fri Apr 05 2002 - 05:44:35 EST


   From: Stelian Pop <stelian.pop@fr.alcove.com>
   Date: Fri, 5 Apr 2002 12:47:33 +0200

   On Fri, Apr 05, 2002 at 02:04:43AM -0800, David S. Miller wrote:
   
> Your client does not do any write()'s after the shutdown call.
> It simply exit(0)'s.
   
   You mean the 'server' ? Even if I add a sleep(600) between the
   shutdown() call and the exit() call I get the same behaviour.

Oh I see now. Here is what should happen:

        * server shutdown(ALL)
        * the write() should succeed on the client
        * client socket receives a TCP reset

If this isn't what is happening, send us a trace.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:17 EST