Closing connection takes lots of time

38 views
Skip to first unread message

Eldad Kuperman

unread,
Aug 16, 2023, 7:52:04 AM8/16/23
to WebSocket++
Hi,

On an active connection (either client or server), when I call  connection<config>::close()  API  then it takes several seconds (e.g. 4 seconds or even more) until receiving on_close handler and run() function exits.

Does it really need to be that slow? Can it perform the closure sequence faster (e.g. ~100 ms at most)?

Thanks.
Reply all
Reply to author
Forward
0 new messages