Boost::asio segfault
Hi, I am running an asynchronous server, and an asynchronous client with asio. I wanted to get an understanding of how the buffering worked with asio, so I performed the following test: Created an asynchronous server that output an incrementing counter every 1ms. Created a asynchronous client that received the counter, but would pause for 1 second in the handler (I.e. my server is publishing information mush faster than the client could receive it) I found that the client would not miss out on any information, i.e. the recieved counter would only ever increment by the amount the server was incrementing by. I found that after sometime though, the server segfaults (possibly a buffer getting overrun??) So my question is, can anyone point me in the direction of information that will tell me how to adjust the buffer asio is using internally (if it is, I have looked in the doco but couldn't find anything)? Also, what gaurentees does asio provide for delivery of a message, if any? regards, campbell.
I found that after sometime though, the server segfaults (possibly a buffer getting overrun??)
This sounds strange... Could you post the code of you test server (I guess it's rather small)?
So my question is, can anyone point me in the direction of information that will tell me how to adjust the buffer asio is using internally
Usage of an internal buffers (if any) is a matter of a specific implementation, and it doesn't seem to be adjustable from the outside. See the description of "buffers" parameter: http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/reference/basic_str...
participants (2)
-
Campbell Morrison
-
Igor R