- From: Steinar Bang <sb@metis.no>
- Date: 19 Aug 1999 13:45:27 +0200
- To: www-lib@w3.org
>>>>> Steinar Bang <sb@metis.no>: > Platform: SuSE linux 5.3, egcs 1.1.2-pre2, qt-2.x (CVS checkout), > libwww from CVS, gdb 4.17 > I am using the Qt QSocketNotifier class > http://www.troll.no/qt/qsocketnotifier.html > for handling socket events and passing them on to libwww. > My problem right now, is that the event_unregister function isn't > called for the HTEvent_READ and HTEvent_WRITE events until a bit of > time has passed, and that gives me error messages like: > QSocketNotifier: Multiple socket notifiers for same socket 8 and type read The reason I got this message was that I didn't check if an entry for the socket already was present in the map from sockets to QSocketNotifier/HTEvent tuples. The reason the notifiers weren't yet unregistered was that the HTTP 1.1 connection was still open, and stayed open until it was closed by the server. Right now I'm overwriting the previous HTEvent* value with the new event, which brings me back to the question I had in http://lists.w3.org/Archives/Public/www-lib/1999JulSep/1006.html ie. can more than one event be registered for a particular socket at the same time? I would think that the answer is "no", but I'm not sure.
Received on Thursday, 19 August 1999 07:45:31 UTC