diff --git a/src/jceConnection/jcesslclient.cpp b/src/jceConnection/jcesslclient.cpp index c293eee..bd25409 100644 --- a/src/jceConnection/jcesslclient.cpp +++ b/src/jceConnection/jcesslclient.cpp @@ -258,7 +258,7 @@ void jceSSLClient::setDisconnected() void jceSSLClient::setEncrypted() { qDebug() << Q_FUNC_INFO << "connection has been ENCRYPTED"; - setReadBufferSize(10000); + setReadBufferSize(packetSize); setSocketOption(QAbstractSocket::KeepAliveOption,true); flag = true; if (!isConnected()) diff --git a/src/jceConnection/jcesslclient.h b/src/jceConnection/jcesslclient.h index a6edbed..1b2cec6 100644 --- a/src/jceConnection/jcesslclient.h +++ b/src/jceConnection/jcesslclient.h @@ -11,6 +11,7 @@ #include #include +#define packetSize 10000 #define milisTimeOut 4000 class jceSSLClient : public QSslSocket