Re: Longpoll with Libsoup
- From: Christian Hergert <chris dronelabs com>
- To: Dan Winship <danw gnome org>
- Cc: libsoup-list gnome org
- Subject: Re: Longpoll with Libsoup
- Date: Mon, 14 May 2012 14:26:36 -0700
On 05/14/2012 06:44 AM, Dan Winship wrote:
> Assuming you know your client isn't going to try to pipeline requests
> (ie, sending a new request before the first one finishes), then you
> could poll for G_IO_IN instead, and that will probably do what you want.
> You could also call soup_socket_read() on it from the SoupServer
> handler, which should fail with SOUP_SOCKET_WOULD_BLOCK, and then
> connect to SoupSocket::readable.
I went ahead and did this (but only for requests with no content length)
which seems to work fine with my limited testing. Thankfully, for the
time being, this is all behind an HTTP gateway so disabling keepalive is
fine.
Thanks again,
-- Christian
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]