Opened 12 years ago

Last modified 12 years ago

#4424 new Bugs

Program using Boost.Asio stops processing the request

Reported by: Joaquim Pedro França Simão <osmano807@…> 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)

gdb (2).log (61.5 KB ) - added by Joaquim Pedro França Simão <osmano807@…> 12 years ago.

Download all attachments as: .zip

Change History (3)

by Joaquim Pedro França Simão <osmano807@…>, 12 years ago

Attachment: gdb (2).log added

comment:1 by chris_kohlhoff, 12 years ago

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.

comment:2 by Joaquim Pedro França Simão <osmano807@…>, 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?

Note: See TracTickets for help on using tickets.