[Interest] Not quite a Qt question.. Buffers in QAbstractSocket

Thiago Macieira thiago.macieira at intel.com
Sun Jun 17 09:44:19 CEST 2012


On domingo, 17 de junho de 2012 01.58.56, wargand at gmx.de wrote:
> My programm runs under Linux and OS X. And now it gets
> strange and I might miss something important. Under
> Linux I set the package size to 4k. The programm runs
> rock stable. Exactly the same code under OS X causes
> the TV to disconnect after a few seconds. When I reduce
> the package size under OS X to 2k the program again
> runs fine with no problems at all.
> 
> I have no idea what could cause the difference. I thought
> I read somewhere that the write buffer size in the socket
> implementation of Qt is unlimited. So I really don't see
> what difference it could make, whether I fill this buffer
> in chunks of 2k or 4k. The TV should read from the buffer

You're right, this should not be an issue.

You need to figure out why the connection disconnected. First of all, use a 
traffic analysis tool to figure out which side initiated the disconnection (the 
first one to send a FIN or RST packet). Then, on that side, debug the program 
to figure out why it decided to disconnect. Look at the backtrace of the 
disconnection and see what decisions led to it.

-- 
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel Open Source Technology Center
     Intel Sweden AB - Registration Number: 556189-6027
     Knarrarnäsgatan 15, 164 40 Kista, Stockholm, Sweden
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 190 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120617/b648f822/attachment.sig>


More information about the Interest mailing list