cd980c9ba6
It seems we were always pinging immediately on a newly created WebSocket, even before upgrading to WS, which logged a warning. That was because we create the WebSocketHandler instance with a timed-out lastPingSentTime. Here we correctly set lastPingSentTime such that it times out *after* InitialPingDelayMicroS has elapsed. This gives it time to upgrade the socket to WS and avoid the warning. Change-Id: I6004348b9b4bd29f614d9e010fb7649da2bca338 Signed-off-by: Ashod Nakashian <ashod.nakashian@collabora.co.uk> |
||
---|---|---|
.. | ||
Buffer.hpp | ||
clientnb.cpp | ||
DelaySocket.cpp | ||
DelaySocket.hpp | ||
FakeSocket.cpp | ||
FakeSocket.hpp | ||
HttpHelper.cpp | ||
HttpHelper.hpp | ||
HttpRequest.cpp | ||
HttpRequest.hpp | ||
NetUtil.cpp | ||
NetUtil.hpp | ||
ServerSocket.hpp | ||
Socket.cpp | ||
Socket.hpp | ||
Ssl.cpp | ||
Ssl.hpp | ||
SslSocket.hpp | ||
WebSocketHandler.hpp | ||
WebSocketSession.hpp |