[gnet] cancelling async connections



I forgot to save GTcpSocketConnectAsyncID, sory.

but my code still doesn't work fine.
sometimes I got segfault

(gdb) info stack
#0  0x00000000 in ?? ()
#1  0x4044c31c in gnet_tcp_socket_connect_tcp_cb (socket=0x813c0a0,
    data=0x81394c8) at tcp.c:180
#2  0x4044c9d0 in gnet_tcp_socket_new_async_cb (iochannel=0x8118c78,
    condition=G_IO_OUT, data=0x81394c8) at tcp.c:510
#3  0x4041e2df in g_vsnprintf () from /usr/lib/libglib-2.0.so.0
#4  0x403fcd00 in unblock_source () from /usr/lib/libglib-2.0.so.0
#5  0x403fdd98 in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#6  0x403fe0ad in g_main_context_dispatch () from
/usr/lib/libglib-2.0.so.0
#7  0x403fe7cf in g_main_loop_run () from /usr/lib/libglib-2.0.so.0


can this be a problem with my code?





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]