mirror of
https://github.com/outbackdingo/sysadm.git
synced 2026-01-27 02:20:17 +00:00
Don't 'close' a socket after a TCP reply - instead just disconnect from the host after all data has been transmitted.
This commit is contained in:
@@ -70,7 +70,7 @@ void WebSocket::sendReply(QString msg){
|
||||
else if(TSOCKET!=0){
|
||||
//TCP Socket connection
|
||||
TSOCKET->write(msg.toUtf8().data());
|
||||
TSOCKET->close(); //TCP/REST connections are 1 connection per message.
|
||||
TSOCKET->disconnectFromHost(); //TCP/REST connections are 1 connection per message.
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user