Commit 7a6770e
Chris Grahn
Change client_impl::send_impl() not to delay ping
client_impl::close_impl() only gets called when the user is closing the
connection ("End by user"), when there is a handshake error, when the
server sends a frame_close packet ("End by server"), or when there is a
pong timeout.
Before, in the case where send_impl() would continously get called with
an interval less than client_impl::m_ping_interval, a disconnect due to
network problems would never be detected because the ping would keep
getting delayed, thus never allowing the pong timeout to happen. This
fixes that by not delaying pings.1 parent 725a8e0 commit 7a6770e
1 file changed
+0
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | 267 | | |
275 | 268 | | |
276 | 269 | | |
| |||
0 commit comments