[Interest] QTcpServer stop accepting connections

Benjamin Zeller zeller.benjamin at web.de
Thu Sep 5 13:04:33 CEST 2013


Hello,

not sure if i just ran into a bug or if i do something wrong:

Basically i have a QTcpServer accepting connections, after a connection
comes in a QTcpSocket is created and pushed to a workerthread to handle
it (moveToThread).

But after 6 connections the QTcpServer stops accepting connections
(seems to be releated to receiving a EAGAIN error) until the first 6
are served (but i openend 20 connections at once from my testcode).

Then it continues with the next 6 and i'm pretty sure the mainloop is
not blocked, because when i pause with the debugger its always waiting
inside exec().

This happens on Linux, i did not test yet with other operating systems.

Anyone ran into something similar?




More information about the Interest mailing list