Hello everyone,
This is actually a libevhtp question, apologies if not the correct mailing list...
Consider the following scenario:
* Client side uses http pipelining and sends requests before waiting for the previous one to fully complete
* Server side responds, but sometimes cannot respond right away, so I pause the connection for a while
From time to time, on the server side, while the connection has been paused and serving a previous request, I'd like to check if a new request has come over the wire; if not, I'd like to continue the paused state; if yes, I'd like to unpause, send a response and have the listener and parser accept the incoming request and go on about its business.
Is there a way to peek at the (paused) input pipe while not ruining the paused state's internal state (pardon the tautology)?