websocketpp icon indicating copy to clipboard operation
websocketpp copied to clipboard

pause_reading terminates a connection when using asio

Open JasonYuchen opened this issue 2 years ago • 1 comments

the pause_reading intended for flow control maybe broken in asio mode.

client               server
        ------1---->                     ok
                     pause_reading    ok
        ------2---->                     ok since the read is queued already
        ------3---->                     err, connection is reset in client side but remains normal in server side
                     resume_reading  err, bad connection in server side

JasonYuchen avatar Jul 13 '22 17:07 JasonYuchen

I have tried the pause_reading in test/transport/integration.cpp which passed as expectation, so I am not sure if it is related to asio or something else, any help is apprecated!

JasonYuchen avatar Jul 13 '22 17:07 JasonYuchen