Opened 12 years ago
Last modified 12 years ago
#4424 new Bugs
Program using Boost.Asio stops processing the request
Reported by: | Owned by: | chris_kohlhoff | |
---|---|---|---|
Milestone: | Boost 1.44.0 | Component: | asio |
Version: | Boost 1.43.0 | Severity: | Problem |
Keywords: | Cc: |
Description
I made a small HTTP proxy, and after +- 1000 simultaneous requests, the process stops working, accepts new connections but does not send anything to the client, which is eternally waiting.
I made a small HTTP proxy, and after + - 1000 simultaneous requests, the process stops working, accepts new connections but does not send anything to the client, which is eternally waiting.
I drove by a GDB backtrace, do not know if it helps a lot.
Attachments (1)
Change History (3)
by , 12 years ago
Attachment: | gdb (2).log added |
---|
comment:1 by , 12 years ago
comment:2 by , 12 years ago
Was suffering the exact same problem described here: http://lists.boost.org/boost-users/2009/02/44720.php
I did the fix as suggested but wonder: is there another better way?
1000 is suspiciously close to the default file descriptor limit. You may be getting an error (e.g. in your async_accept completion handler) and not handling it correctly.