Don't reconfigure socket if not connected
This commit is contained in:
parent
8a4ee937b1
commit
6a0cf23519
@ -196,6 +196,11 @@ namespace fr
|
|||||||
|
|
||||||
void SSLSocket::reconfigure_socket()
|
void SSLSocket::reconfigure_socket()
|
||||||
{
|
{
|
||||||
|
if(!connected())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int one = 1;
|
int one = 1;
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
//Disable Nagle's algorithm
|
//Disable Nagle's algorithm
|
||||||
|
|||||||
@ -190,6 +190,11 @@ namespace fr
|
|||||||
|
|
||||||
void TcpSocket::reconfigure_socket()
|
void TcpSocket::reconfigure_socket()
|
||||||
{
|
{
|
||||||
|
if(!connected())
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
int one = 1;
|
int one = 1;
|
||||||
#ifndef _WIN32
|
#ifndef _WIN32
|
||||||
//Disable Nagle's algorithm
|
//Disable Nagle's algorithm
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user