Re: Disconnecting clients from SoupServer



On 09/20/2010 07:46 PM, Rune Saetre wrote:
> Is it safe calling soup_socket_disconnect() from a different thread than
> the one running GMainLoop?

No, SoupServer isn't thread-safe. You'd have to add an idle handler to
the server's main context, and call soup_socket_disconnect() from there.

(And if that doesn't work, then file a bug.)

-- Dan


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