Meta
I know this looks like a duplicate of asio : multiple pending async_read? but is not, since the OP there was actually asking about async_read
not async_read_some
which he/she also said in the comment . Also in contrast to his or her question I can only find that multiple async_read
s are disallowed. Neither the async_read_some
documentation of TCP sockets nor serial ports are mentioning anything about it.
Question
Are multiple async_read_some
calls disallowed? If not, I would assume to the dokumented proactor behaviour of boost asio, that I something was read, the handler of the first posted async_read_some
would be executed, and only after the next read, the second handler in a FIFO queue concept. (Assuming we would not have 0 reads).
If it is disallowed, could somebody help me out with the pointer to the documentation?