soup_message_io_pause and disconnects



Good day!

I ran into the following problem: while a request is paused, the client
disconnects, so I get

(process:9347): libsoup-CRITICAL **: soup_socket_is_connected: assertion
`SOUP_IS_SOCKET (sock)' failed
(process:9347): libsoup-CRITICAL **: soup_socket_disconnect: assertion
`SOUP_IS_SOCKET (sock)' failed
1185340379>=1185340385, kicking
(process:9347): libsoup-CRITICAL **: soup_message_set_status: assertion
`SOUP_IS_MESSAGE (msg)' failed
(process:9347): GLib-GObject-WARNING **: instance of invalid
non-instantiatable type `(null)'
./run++: line 5:  9347 Segmentation fault      (core dumped)
LD_LIBRARY_PATH=/usr/lib:/home/gritzko/lib ./httpxmppgw

on

#0  0xb7e1cc0e in soup_message_io_unpause () from /usr/lib/libsoup-2.2.so.8
#1  0x0804aab7 in User::kickTimedOut (this=0x8069c08) at hxgw_user.cpp:266
#2  0x0804ab67 in freeze_timeout_cb (resp=0x8069c08) at hxgw_user.cpp:250
#3  0xb7f7bf26 in g_source_get_current_time () from
/usr/lib/libglib-2.0.so.0
#4  0xb7f7b952 in g_main_context_dispatch () from /usr/lib/libglib-2.0.so.0
#5  0xb7f7e91f in g_main_context_check () from /usr/lib/libglib-2.0.so.0
#6  0xb7f7ecc9 in g_main_loop_run () from /usr/lib/libglib-2.0.so.0
#7  0x08054409 in main () at hxgw_main.cpp:17

So, what is the recommended way to listen to user's disconnects?

Thank you!

-- 

	Victor Grishchenko
	Yandex - Yekaterinburg




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