[Interest] Very interesting problem with TCP sockets
Igor Mironchik
igor.mironchik at gmail.com
Mon Sep 1 11:24:38 CEST 2014
Hi,
seems that with Qt all is OK.
Look at the pcap file...
-----Original Message-----
From: Thiago Macieira
Sent: Monday, September 01, 2014 9:54 AM
To: interest at qt-project.org
Subject: Re: [Interest] Very interesting problem with TCP sockets
On Monday 01 September 2014 09:37:12 Igor Mironchik wrote:
> Hi guys,
>
> I was trying to connect Qt TCP Socket with Boost Asio TCP socket.
>
> And what I found. Qt writes simple 12 bytes message to the Boost and in
> most
> situations Boost reads garbage. Even more Boost can crash.
>
> And my question is: who is so bad guy, Boost or Qt?
Anything that crashes is at fault for certain.
> You can find simple implementation of the problem in the attachment.
> Thanks.
Please don't derive from QTcpSocket. That's bad practice.
Anyway, please use a traffic sniffer and tell us whether those 12 bytes are
written and whether any garbage is sent.
--
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
_______________________________________________
Interest mailing list
Interest at qt-project.org
http://lists.qt-project.org/mailman/listinfo/interest
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dumpfile.pcap
Type: application/octet-stream
Size: 59167 bytes
Desc: not available
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20140901/eb5ca51b/attachment.obj>
More information about the Interest
mailing list