From: Oleg M. <ole...@gm...> - 2011-02-16 03:28:43
|
On 16.02.2011 12:46, Dean Michael Berris wrote: > On Wed, Feb 16, 2011 at 10:38 AM, Oleg Malashenko > <ole...@gm...> wrote: >> On 16.02.2011 03:38, Gregory Symons wrote: >>> The following tests FAILED: >>> 14 - cpp-netlib-hello_world (Failed) >>> 15 - cpp-netlib-http_async_server (Failed) >>> 16 - cpp-netlib-http_server_async_less_copy (Failed) >>> 17 - mime-roundtrip (Failed) >>> >>> Looking closely at the verbose test output, it looks like they all >>> failed because the address they were trying to bring up the server on >>> was still in use. >>> >> >> Will you please try it with the following patch? >> > > Why isn't this a pull request Oleg? :D > Because I don't know if it is going to work. In fact, terminating test applications is not the best way to close network sockets (see http_server_async_less_copy). If test suite doesn't actually try to run several tests simultaneously and they all try bind to the same port, than I think we hit TIME_WAIT problem here. http://hea-www.harvard.edu/~fine/Tech/addrinuse.html Oh, and Gregory, I almost forgot about sync server. Here is the new patch, that sets SO_REUSEADDR in sync_server as well as in async_server. -- Best regards, Oleg Malashenko. |