Allow customizing the websocket handshake timeout (#264)
This commit is contained in:
parent
e7f7e470e2
commit
d739662a7c
@ -56,6 +56,11 @@ namespace ix
|
|||||||
_url = url;
|
_url = url;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void WebSocket::setHandshakeTimeout(int handshakeTimeoutSecs)
|
||||||
|
{
|
||||||
|
_handshakeTimeoutSecs = handshakeTimeoutSecs;
|
||||||
|
}
|
||||||
|
|
||||||
void WebSocket::setExtraHeaders(const WebSocketHttpHeaders& headers)
|
void WebSocket::setExtraHeaders(const WebSocketHttpHeaders& headers)
|
||||||
{
|
{
|
||||||
std::lock_guard<std::mutex> lock(_configMutex);
|
std::lock_guard<std::mutex> lock(_configMutex);
|
||||||
|
@ -48,6 +48,7 @@ namespace ix
|
|||||||
void setUrl(const std::string& url);
|
void setUrl(const std::string& url);
|
||||||
|
|
||||||
// send extra headers in client handshake request
|
// send extra headers in client handshake request
|
||||||
|
void setHandshakeTimeout(int handshakeTimeoutSecs);
|
||||||
void setExtraHeaders(const WebSocketHttpHeaders& headers);
|
void setExtraHeaders(const WebSocketHttpHeaders& headers);
|
||||||
void setPerMessageDeflateOptions(
|
void setPerMessageDeflateOptions(
|
||||||
const WebSocketPerMessageDeflateOptions& perMessageDeflateOptions);
|
const WebSocketPerMessageDeflateOptions& perMessageDeflateOptions);
|
||||||
|
Loading…
Reference in New Issue
Block a user