mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Error binding socket: address already in use
@ 2006-09-13 14:41 Peter Lezoch
  2006-09-13 14:46 ` Jan Engelhardt
                   ` (3 more replies)
  0 siblings, 4 replies; 6+ messages in thread
From: Peter Lezoch @ 2006-09-13 14:41 UTC (permalink / raw)
  To: linux-kernel


Hi,
killing a server task that is operating on a UDP socket( AF_INET, SOCK_DGRAM, IPPROTO_UDP ), leaves the socket in an unclosed state. A subsequently started task, that wants to use the same port, gets from bind above error message.This is, in my opinion, wrong behavior, because of the connectionless nature of UDP. Only reboot solves this situation. It looks, as if in net/socket.c, TCP and UDP are handled in the same way without taking into account the different nature of the protocols?!
How can I overcome this problem ?

kind regards

peter lezoch

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-09-14  7:15 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-09-13 14:41 Error binding socket: address already in use Peter Lezoch
2006-09-13 14:46 ` Jan Engelhardt
2006-09-13 14:46 ` David M. Lloyd
2006-09-13 15:23 ` Alan Cox
2006-09-14  7:15   ` Colin Hirsch
2006-09-13 15:33 ` linux-os (Dick Johnson)

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®