Add context to a client immediately after connection. Otherwise calling SERVER_get_cl...
authorBart Polot <bart@net.in.tum.de>
Sat, 13 Jul 2013 01:20:42 +0000 (01:20 +0000)
committerBart Polot <bart@net.in.tum.de>
Sat, 13 Jul 2013 01:20:42 +0000 (01:20 +0000)
commit9babf324cd30822e8099dece229503ebc466e11b
tree08b7351bb25f01fe3116b5b43db08a0f255e30e9
parent1d53ec8da14a39e436cbddebba9cd92537870b6a
Add context to a client immediately after connection. Otherwise calling SERVER_get_client_context on a client that never sent an initial message (and didn't have a chance to receive something via SERVER_set_client_context) causes an assertion failure in server.c:355. This happens when the client can connect to the service on multiple protocols, one of the connections will be immediately closed (see bug for ghost client disconnects)
src/mesh/gnunet-service-mesh.c