[Vortex] How to correctly close a connection?
Francis Brosnan Blazquez
francis at aspl.es
Tue Oct 7 11:22:21 CEST 2008
> No, nothing is called. So, this is really strange because on the
> side there is nothing fancy happening.
Yes. This is estrange...
> The server calls:
> inside the on_connection_closed handler. But I don't expect these to
> any sideeffects. Any idea how I can track it further down?
I would check if the segault happens after removing all previous call.
That is, let the connection closed handler to execute but do nothing
with the connection.
Another check to do is to run your server using valgrind:
>> libtool --mode=execute valgrind --db-attach=yes YOUR-SERVER.
It will spot when and where was deallocated the memory wrongly accessed.
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.
More information about the Vortex