mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Some improvements to Servatice network code (#3969)
* Some improvements to Servatice network code 1. fix crash on fuzzy connection (tcp server only) 2. ensure websockets are parent()ed to avoid leaking them 3. quick catch disconnect()ed sockets instead of waiting for a socket error to happen 4. supporto mulltiple connection pools on the websocket server; they are still bound to the same thread due to a qt5 limitation.
This commit is contained in:
parent
46fe0cd725
commit
d30691559a
4 changed files with 34 additions and 12 deletions
|
|
@ -59,6 +59,7 @@ class AbstractServerSocketInterface : public Server_ProtocolHandler
|
|||
Q_OBJECT
|
||||
protected slots:
|
||||
void catchSocketError(QAbstractSocket::SocketError socketError);
|
||||
void catchSocketDisconnected();
|
||||
virtual void flushOutputQueue() = 0;
|
||||
signals:
|
||||
void outputQueueChanged();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue