Hi Oskar, Tavin:

Is OpenConnectionManager.findFreeConnection() supposed to remove the 
ConnectionHandler it returns from the table? It doesn't in the current code.

If not, isn't there a race condition where two separate threads could call 
OpenConnectionManager.getConnection() and get the same "idle" 
ConnectionHandler? i.e. first call gets an idle handler, second call gets the 
same handler before the first can send a message on it.

--gj

-- 
Freesites
(0.3) freenet:MSK at SSK@enI8YFo3gj8UVh-Au0HpKMftf6QQAgE/homepage//
(0.4) freenet:SSK at npfV5XQijFkF6sXZvuO0o~kG4wEPAgM/homepage//

_______________________________________________
Devl mailing list
Devl at freenetproject.org
http://lists.freenetproject.org/mailman/listinfo/devl

Reply via email to