Re: [asio-users] Crashing server app after port to Asio
Brought to you by:
chris_kohlhoff
From: Cheng L. <rhy...@gm...> - 2007-04-26 08:28:22
|
Olaf van der Spek wrote: > On 4/25/07, Cheng Lian <rhy...@gm...> wrote: >> Olaf van der Spek wrote: >>> void connection::handle_timer(const asio::error_code& e) >>> { >>> socket_.close(); >>> } >>> >> How many threads do you run the io_service::run()? I can figure out one > > Just a single thread. I don't use threads myself in that app. Hmmm... sorry, I've no idea... But, I'm interested in the memory_range class in your code. It seems to be something like java.nio.ByteBuffer, since I noticed this line the statement "w_ += bytes_transferred;" in the connection::handle_read method. I'm curious about this class, could you please leave some information about it? :-) |