Re: [Development] QNetwork problem in threaded application.

2013-09-09 Thread Shane Kearns
moveToThread on a socket should do the following: 1. cancel socket notifiers 2. change thread affinity 3. (in new thread) re-enable socket notifiers. Could be that step 1 doesn't remove already pending notifications when using the gnome event dispatcher. For a safe multithreaded server, you shoul

[Development] QNetwork problem in threaded application.

2013-09-09 Thread Benjamin Zeller
Hello, i'm currently stress-testing a application at work and came across this problem. The application accepts connections and pushes the created sockets to a worker thread (moveToThread), the worker thread then handles the rest. But sometimes when the socket was already closed in the thread i ge