Boost asio async_read_until followed by async_read
问题 I used the async tcp server example from boost which is near to what my application is doing. The code example below is a fully working example. At first I start an async read operation until the delimiter char. In this case it is the http header complete sequence. The request contains some payload which is "hello world" (11 bytes). For a simplified example I use lambda handlers here. The first handler is called wit a length of 148 which is the header including four bytes for the delimiter