my server runs following code:
boost::asio::streambuf streambuf;
std::istream istream(&streambuf);
boost::archive::xml_iarchive xml_iarchive(istream);
boost::asio::read_until(socket_, streambuf, '\n');
When the server is up and running I connect vie telnet from another machine. Immediately after connection is established, the connection is getting closed and the server crashes with following exception:
terminate called after throwing an instance of 'boost::archive::xml_archive_exception'
what(): unrecognized XML syntax
Where is the failure at the code snippet above? It looks to me that the telnet session is sending a '\n' before I manually enter some XML string.