
7 Jul
2010
7 Jul
'10
10:16 a.m.
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.