All of lore.kernel.org
 help / color / mirror / Atom feed
* Q: need effective backlog for listen()
@ 2014-12-08 12:51 Ulrich Windl
  2014-12-08 15:18 ` Eric Dumazet
  2014-12-08 16:35 ` Philippe Troin
  0 siblings, 2 replies; 7+ messages in thread
From: Ulrich Windl @ 2014-12-08 12:51 UTC (permalink / raw)
  To: netdev

(not subscribed to the list, plese keep me on CC:)

Hi!

I have a problem I could not find the answer. I suspect the problem arises from Linux derivating from standard functionality...

I have written a server that should accept n TCP connections at most. I was expecting that the backlog parameter of listen will cause extra connection requests either
1) to be refused
or
2) to time out eventually

(The standard seems to say that extra connections are refused)

However none of the above see ms true. Even if my server delays accept()ing new connections, no client ever sees a "connection refused" or "connection timed out". Is there any chance to signal the client that no more connections are accepted at the moment?

Regards,
Ulrich Windl

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

end of thread, other threads:[~2014-12-10  7:23 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-08 12:51 Q: need effective backlog for listen() Ulrich Windl
2014-12-08 15:18 ` Eric Dumazet
2014-12-08 16:31   ` Antw: " Ulrich Windl
2014-12-08 16:35 ` Philippe Troin
2014-12-09  7:01   ` Antw: " Ulrich Windl
2014-12-09 15:07     ` Philippe Troin
2014-12-10  7:23       ` Ulrich Windl

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.