boostorg / cobalt

Coroutines for C++20 & asio
https://www.boost.org/doc/libs/master/libs/cobalt/doc/html/index.html
207 stars 24 forks source link

The Echo Server example issue #121

Closed akrzemi1 closed 1 year ago

akrzemi1 commented 1 year ago

When I try the echo server example on MSVC, it echoes every letter separately: I want to type (form terminal, using telnet) a word, but upon every single letter it echoes that letter alone. So I get

wwoorrlldd

instead of

world
world

Is that intentional? I recall that the coroutine example from ASIO worked as I expect.

klemens-morgenstern commented 1 year ago

Not intentional, but correct if you use telnet. The echo server just sends back the packages you sent, so if telnet sends them individually, that's correct.

akrzemi1 commented 1 year ago

Thanks.