[Interest] Strange QWebSocket/QTcpServer interaction... Bug in Firefox?
thiago.macieira at intel.com
Mon Dec 22 03:14:35 CET 2014
On Sunday 21 December 2014 22:57:06 Guido Seifert wrote:
> Thiago, do you know by any chance how costly it is to open and close a
> socket? When this always happens when data is sent over my QWebSocket and
> I have several clients... this cost might add up.
That depends on the OS. On Linux, it's fairly inexpensive (besides the TCP/IP
cost of handshake), but on Windows it might be expensive.
And as evidence shows, browsers do open connections early so that the users
won't notice the latency. Then again, this is for Internet connections where
the handshake roundtrip can be hundreds of milliseconds.
Thiago Macieira - thiago.macieira (AT) intel.com
Software Architect - Intel Open Source Technology Center
More information about the Interest