[Vortex] How to correctly close a connection?

Francis Brosnan Blazquez francis at aspl.es
Tue Oct 7 11:22:21 CEST 2008


Hi Robert,

> No, nothing is called. So, this is really strange because on the
> server  
> side there is nothing fancy happening. 

Yes. This is estrange...

> The server calls:
> 
> vortex_connection_get_id
> vortex_connection_get_host
> vortex_connection_get_port
> 
> inside the on_connection_closed handler. But I don't expect these to
> have  
> 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.
Cheers!

-- 
Francis Brosnan Blazquez <francis at aspl.es>
Advanced Software Production Line, S.L.



More information about the Vortex mailing list