* Fw: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
@ 2011-04-06 23:07 Stephen Hemminger
2011-04-06 23:48 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Stephen Hemminger @ 2011-04-06 23:07 UTC (permalink / raw)
To: netdev
Begin forwarded message:
Date: Wed, 6 Apr 2011 22:42:39 GMT
From: bugzilla-daemon@bugzilla.kernel.org
To: shemminger@linux-foundation.org
Subject: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
https://bugzilla.kernel.org/show_bug.cgi?id=32832
Summary: shutdown(2) does not fully shut down socket any more
Product: Networking
Version: 2.5
Kernel Version: 2.6.38
Platform: All
OS/Version: Linux
Tree: Mainline
Status: NEW
Severity: normal
Priority: P1
Component: IPV4
AssignedTo: shemminger@linux-foundation.org
ReportedBy: kees@outflux.net
Regression: Yes
In 2.6.35 and earlier, shutdown(2) will fully remove a socket. This does not
appear to be true any more and is causing software to misbehave.
2.6.35:
$ ./testcase
parent: 5957
before:
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN
after:
child: 5961
$ ./testcase
parent: 6001
before:
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN
after:
child: 6002
2.6.38:
$ ./testcase
parent: 1138
before:
tcp 0 0 0.0.0.0:12345 0.0.0.0:* LISTEN
after:
child: 1142
$ ./testcase
bind: Address already in use
The listener doesn't show up in netstat any more, but as long as the child
process is running, the socket is unavailable. It is as if the shutdown(2)
behavior has partially reverted to close(2) behavior (but in the case of using
close(2), the child's socket would remain visible in netstat).
--
Configure bugmail: https://bugzilla.kernel.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
--
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
2011-04-06 23:07 Fw: [Bug 32832] New: shutdown(2) does not fully shut down socket any more Stephen Hemminger
@ 2011-04-06 23:48 ` David Miller
2011-04-08 21:03 ` Eric Dumazet
0 siblings, 1 reply; 4+ messages in thread
From: David Miller @ 2011-04-06 23:48 UTC (permalink / raw)
To: shemminger; +Cc: netdev
From: Stephen Hemminger <shemminger@linux-foundation.org>
Date: Wed, 6 Apr 2011 16:07:13 -0700
> Begin forwarded message:
>
> Date: Wed, 6 Apr 2011 22:42:39 GMT
> From: bugzilla-daemon@bugzilla.kernel.org
> To: shemminger@linux-foundation.org
> Subject: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
>
>
> https://bugzilla.kernel.org/show_bug.cgi?id=32832
>
> Summary: shutdown(2) does not fully shut down socket any more
...
>
> In 2.6.35 and earlier, shutdown(2) will fully remove a socket. This does not
> appear to be true any more and is causing software to misbehave.
>
This is already being discussed:
http://marc.info/?l=linux-netdev&m=130176733401613&w=2
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
2011-04-06 23:48 ` David Miller
@ 2011-04-08 21:03 ` Eric Dumazet
2011-04-08 21:36 ` David Miller
0 siblings, 1 reply; 4+ messages in thread
From: Eric Dumazet @ 2011-04-08 21:03 UTC (permalink / raw)
To: David Miller; +Cc: shemminger, netdev
Le mercredi 06 avril 2011 à 16:48 -0700, David Miller a écrit :
> From: Stephen Hemminger <shemminger@linux-foundation.org>
> Date: Wed, 6 Apr 2011 16:07:13 -0700
>
> > Begin forwarded message:
> >
> > Date: Wed, 6 Apr 2011 22:42:39 GMT
> > From: bugzilla-daemon@bugzilla.kernel.org
> > To: shemminger@linux-foundation.org
> > Subject: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
> >
> >
> > https://bugzilla.kernel.org/show_bug.cgi?id=32832
> >
> > Summary: shutdown(2) does not fully shut down socket any more
> ...
> >
> > In 2.6.35 and earlier, shutdown(2) will fully remove a socket. This does not
> > appear to be true any more and is causing software to misbehave.
> >
>
> This is already being discussed:
>
> http://marc.info/?l=linux-netdev&m=130176733401613&w=2
Status update : I'll take time this week end to work on this and find a
solution.
Thanks
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [Bug 32832] New: shutdown(2) does not fully shut down socket any more
2011-04-08 21:03 ` Eric Dumazet
@ 2011-04-08 21:36 ` David Miller
0 siblings, 0 replies; 4+ messages in thread
From: David Miller @ 2011-04-08 21:36 UTC (permalink / raw)
To: eric.dumazet; +Cc: shemminger, netdev
From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Fri, 08 Apr 2011 23:03:53 +0200
> Le mercredi 06 avril 2011 à 16:48 -0700, David Miller a écrit :
>>
>> This is already being discussed:
>>
>> http://marc.info/?l=linux-netdev&m=130176733401613&w=2
>
>
> Status update : I'll take time this week end to work on this and find a
> solution.
Thanks a lot Eric.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-04-08 21:36 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06 23:07 Fw: [Bug 32832] New: shutdown(2) does not fully shut down socket any more Stephen Hemminger
2011-04-06 23:48 ` David Miller
2011-04-08 21:03 ` Eric Dumazet
2011-04-08 21:36 ` David Miller
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.