@SGaist
you should have to modify QAbtractSocket
Seems like you right. The code in 'qabstractsocket.cpp':
<...skipped...>
// Start the connect timer.
if (threadData->hasEventDispatcher()) {
if (!connectTimer) {
connectTimer = new QTimer(q);
QObject::connect(connectTimer, SIGNAL(timeout()),
q, SLOT(_q_abortConnectionAttempt()),
Qt::DirectConnection);
}
connectTimer->start(QT_CONNECT_TIMEOUT);
}
<...skipped...>
And there are no options to disable it. But I think it will be easy to patch it to make it work without connectTimer.
But use a single timeout for thought of sockets ? Sounds strange.
What else can I do to avoid handles exhaustion? I don't see any other options.
Out of curiosity, why do you need so many sockets ?
Just testing Qt abilities and limitations in this particular area.