[Interest] QTcpServer memory usage

Joseph W Joshua joshua at panthertechno.com
Tue Oct 16 16:22:07 CEST 2012

On Oct 16, 2012, at 4:11 PM, <Lucas.Betschart at crypto.ch> wrote:

> Hi everybody,
> What happens when I have a QTcpServer which gets a connection that writes much data to it (endless), but I never create a QTcpSocket (with QTcpServer::nextPendingConnection() ) and read this data?
> Will I the memory usage of my application increase endless? Or will the QTcpServer just throw away all the data?
> I have to open a port to start an other application, but I'm not interested in the data it sends.
> Thanks for your help.
> Regards
> Lucas
> _______________________________________________
> Interest mailing list
> Interest at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/interest

This will never work. The client cannot send any data until the server accepts the connection by calling nextPendingCommection();

More information about the Interest mailing list