[PyQt] Windows-problem with QLocalServer/QLocalSocket
T.N.T.
tnt at banza.net
Tue Jan 22 18:09:40 GMT 2013
> Date: Sat, 19 Jan 2013 15:21:10 +0100
> From: "T.N.T." <tnt at banza.net>
> To: pyqt at riverbankcomputing.com
> Subject: [PyQt] Windows-problem with QLocalServer/QLocalSocket
>
> Hello
>
> This is probably rather a windows-problem so I hope it is not too off-topic.
>
> I'm experimenting with a little PyQt-app where one instance connects and
> writes as client to another instance. That works fine in Linux, Mac Os,
> and one Windows XP that I have tested. But on another box where a
> Windows 7 Home is running, it fails. It connects but but then the server
> part fails to read from the connection (waitForReadyRead() just
> immediately returns False).
It turned out not to be a windows problem. I called waitForReadyRead()
with 2000 as argument. When I increase it to 20000 it just works.
The docs say the unit of this argument is milliseconds but with 2000 the
function returns immediateley False; not after two seconds. Hmm, funny.
Regards, T.
More information about the PyQt
mailing list