Boost logo

Boost Users :

Subject: Re: [Boost-users] asio, new connection handler is not called
From: Igor R (boost.lists_at_[hidden])
Date: 2010-07-07 06:16:35

> Now inside the thread, I have created a "thread interruption point". This
> thread interruption point is inside a while loop for testing, and the while
> loop is inside the "async_read_handler". (That is the read handler never
> returns - When testing code is execution control is here-). By opening a new
> "telnet client", I have tried to connect to the listening port, it is
> connected, but the async_accept handler routine is not called! What could be
> the reason? How can I rectify this?

Who calls async_read_handler? Check that the thread you're blocking
(with "while" loop) is not supposed to pump the handlers, i.e. it's
not the thread that executes io_service::run().

P.S. it's worth asking asio-related question on asio mailng list.

Boost-users list run by williamkempf at, kalb at, bjorn.karlsson at, gregod at, wekempf at