c++ - Boost::ASIO cannot write back to client from server -
i have couple questions regarding boost asio. i'm running problem clients can connect server, , asynchronously send data, cannot receive back. the async_write callback gets error: "the file handle supplied not valid". find strange couple reasons: when client connects initially, check socket.isopen() on server, , returns true. the fact client can still send data makes me think it's server side problem, or firewall problem (which find odd because server , client both on same computer (i'm using "localhost" connect now). some more info... tcp sockets. i'm using boost , allegro side-by-side, , both boost , allegro threads being used. have io_service running in boost thread (server , client): boost::asio::io_service::work work( io_service ); boost::thread io_thread( boost::bind( &boost::asio::io_service::run, &io_service ) ); and that's being called before create sockets. the allegro threads hold allegro event loops, no...