new SoupServer from socket descriptor
- From: Christian Hergert <chris dronelabs com>
- To: libsoup-list gnome org
- Subject: new SoupServer from socket descriptor
- Date: Thu, 31 May 2012 12:04:21 -0700
On 05/31/2012 03:44 AM, Dan Winship wrote:
> Adding an API to cleanly steal the GSocketConnection away from a message
> seems like it might be a good idea. (That would also make it possible to
> implement the server side of CONNECT, which is currently impossible.)
I would also love to see something like this for SoupServer. For
example, I'd like to have a parent process that tells a child to stop
accept()'ing new connections but not close the socket descriptor. Then
pass that socket descriptor to another (clean memory footprint) to
continue accept()'ing new connections. Doing this becomes rather
necessary when memory fragmentation gets out of control.
Maybe something like:
SoupServer *soup_server_new_from_unix (gint sd);
Perhaps soup_socket_disconnect() is enough to disable the listening socket?
(I'd be willing to write this if others find it useful).
Cheers,
-- Christian
[
Date Prev][Date Next] [
Thread Prev][Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]