[Qt-interest] QSslSocket and xinetd
Mathias Waack
Mathias.Waack at rantzau.de
Fri May 8 15:26:54 CEST 2009
Hi all,
I'm trying to wrap an existing server communicating through xinetd with a
QSslSocket. Basically I'm simply setting the descriptor:
int socketDescriptor = STDIN_FILENO;
socket = new QSslSocket(this);
socket->setSocketDescriptor(socketDescriptor,QAbstractSocket::ConnectedState);
The ssl-handshake completes without problems, but after a few bytes send or
received the connection terminates issuing the error signal
QAbstractSocket::UnknownSocketError. So I've wrapped the existing code with a
simple QTcpServer, runs it standalone and everything works fine. Thus I
assume there is something wrong with QSslSocket and the socket provided by
xinetd (or even the way I use both).
Any hints? Does anyone use such a configuration and could offer some sources?
Mathias
More information about the Qt-interest-old
mailing list