Hello,

I am currently working an a server/client application using SSL/TCP.
In order do archive this, i do the following:

1. create a QTcpServer
2. make it listen to any host address and a specific port
3. connect the "newConnection()" SIGNAL to my "newTcpConnection()" SLOT
4. There i use the socketDescriptor of the nextPendingConnection and set it to a new sslSocket

The code looks like this:

Qt Code:
  1. void sslServer::newTcpConnection()
  2. {
  3. qDebug() << "New TCP connection";
  4. qintptr descriptor = tcpServer->nextPendingConnection()->socketDescriptor();
  5.  
  6. QSslSocket *sslSocket = new QSslSocket(this);
  7. if (!sslSocket->setSocketDescriptor(descriptor)) { //<--Displays mentioned error
  8. qCritical() << "Setting socket descriptor failed";
  9. emit error(sslSocket->errorString());
  10. delete sslSocket;
  11. return;
  12. }
  13. ...
  14. }
To copy to clipboard, switch view to plain text mode 

But i do not understand why I get the following warning:

"QSocketNotifier: Multiple socket notifiers for the same socket 520 and type Read"

The warning occurs when executing the marked line.
I do not use threads and i create a new socket for every new connection,
therefore it should only be one socket notifier per sslSocket.


I would appreciate any help.

Thank you!