[Qt-interest] Maximum QT TCP socket that we can create
Mario Signorino
mario.signorino at gmail.com
Mon Feb 15 15:01:06 CET 2010
On Fri, Feb 12, 2010 at 7:45 PM, Thiago Macieira <thiago at kde.org> wrote:
> Em Sexta-feira 12 Fevereiro 2010, às 19:31:57, AngelWarrior escreveu:
>> Hi,
>>
>> I want to know what is the maximum QT tcp or UDP sockets that I can create
>> in Windows or linux.Is there any maximum limit that is set in QT.
>
> Qt doesn't have a maximum set.
>
> However, the operating system usually does. Trying to create more than 1024
> file descriptors is asking for trouble.
I have successfully reached 4000 (3k) qtcpsocket in a single process
(multi threaded) application. The performance was absolutely
acceptable (small and fast packet exchanged). However... working with
plain socket&select you can ( I did) get more. "More" = *3.
The question is "why do you need to keep so many open connection in a
single application?".
Google for "10k problem".
--
Mario Signorino | www.sgrunt.net
More information about the Qt-interest-old
mailing list