Яков Каабак
2014-12-24 22:38:31 UTC
My problem is similar to that described here: http://sourceforge.net/p/asio/mailman/message/23297553/.
I am using boost.asio 1.57.
There are two programs, say, client and server. Client sends messages to the server, the server sends the replies. All is done via asynchronous calls.
After the client sends the third message to the server, the server fails to receive it, that is its receive handler is never called.
Also I have a timer which is used to detect broken connections. The timer fires every min.
With that timer, the async_receive works â but only after the timer expires. I disabled the timer to diagnose the situation and found that the async_receive hangs.
I tried to look into the boost.asio internals with debugger to see what is going on, but didnât succeed.
What else can I do?
I am using boost.asio 1.57.
There are two programs, say, client and server. Client sends messages to the server, the server sends the replies. All is done via asynchronous calls.
After the client sends the third message to the server, the server fails to receive it, that is its receive handler is never called.
Also I have a timer which is used to detect broken connections. The timer fires every min.
With that timer, the async_receive works â but only after the timer expires. I disabled the timer to diagnose the situation and found that the async_receive hangs.
I tried to look into the boost.asio internals with debugger to see what is going on, but didnât succeed.
What else can I do?