5 Mar
2010
5 Mar
'10
4:49 a.m.
If the handlers are not invoked, your io_serivce probably isn't running. Try to add a log message after io_service::run() call, so that you'll see when it exits. If your design needs io_service restart, don't forget to call io_servie::reset() before any subsequent run().
I second this recommendation. I once spent a long time trying to figure out a similar problem and when i stepped into io_service::run it returned immediately and i felt pretty stupid when i saw why. Zach