Re: Disconnecting a client
- From: Dan Winship <danw gnome org>
- To: Michael Bell <michael bell cms hu-berlin de>
- Cc: libsoup-list gnome org
- Subject: Re: Disconnecting a client
- Date: Wed, 25 Mar 2009 09:21:15 -0400
Michael Bell wrote:
> Dan Winship wrote:
>
>> Yup, the problem is that SoupSessionAsync is not thread-safe, but you're
>> queuing messages from the main thread and having them be run in the
>> client_thread. If you change the code so that the
>> soup_session_queue_message() call happens in client_thread, then it will
>> work fine.
>
> Short question, does this limitation exist for soup_server_quit too?
Yes. Look at what tests/test-utils.c:test_server_shutdown() does for an
example of the "right" way. It uses soup_add_completion() to cause
soup_server_quit() to be called in the server's async_context rather
than in the main thread.
-- Dan
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]