Re: Longpoll with Libsoup



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]