
8 Jan
2014
8 Jan
'14
3:44 p.m.
On 01/08/2014 04:15 PM, Miklós Tóth wrote:
Connector(boost::asio::io_service& io_service) : _io_service(io_service), _socket(io_service) {
[...]
std::vector<char> _readbuffer; };
Boost.Asio assumes that your buffer is allocated with the correct size. It does not use the fact that std::vector can be dynamically enlarged. Add _readbuffer(1024) to your initializer list.