Boost logo

Boost Users :

Subject: Re: [Boost-users] [asio] async write handler is not called until the socket is not closed
From: Igor R (boost.lists_at_[hidden])
Date: 2009-04-30 04:52:13


> But I ask you to point to probable reasons of such behaviour that
> breaks asio rules..

According to your description, probable reason is a blocked io_service
thread. Maybe in some situation one of the handlers (which are called
from within io_serivce thread) do not return - then any subsequent
handler won't be invoked. Probably the blockage is released after you
close the socket - due to some design issues, so at this point all the
queued handlers get invoked.


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net