[Qt-interest] QUdp sockets stops receiving after a while
Markus Goetz
Markus.Goetz at nokia.com
Thu Feb 25 10:38:46 CET 2010
ext David Boosalis wrote:
> I have a QUdpSocket that gets data just fine for quite some time, the
> data is coming in fairly fast at every 100 miliseconds over the
> internet. But then after receiving a lot of messages (Sometimes a lot
> is 4,000 messages, sometimes it is over 8000 messages) it just stops
> receiving all messages.
>
> The server acts as the client and connects to the client for sending
> UPD sockets. The server (I mean the client) still thinks it is
> connected and sends data on its UdpSocket. It's QUdpSocket::state
> also reports that it is connected. The problem is on Windows and Linux
>
> Does anyone have any insite as to why a QUdpSocket might stop after
> working fine for some time. Should I periodically close the port used
> for binding and reopen it.
> .
No, but can you send a minimal example that reproduces the problem?
I can't think of a reason this happens.
Markus
More information about the Qt-interest-old
mailing list