zostay / RakuWAPI

The Web API for Raku (RakuWAPI)
Artistic License 2.0
24 stars 5 forks source link

Look into an extension for handling response backpressure #10

Closed zostay closed 9 years ago

zostay commented 9 years ago

Implementations may want to be able to provide some mechanism for polling the output handle for blocking in case sends get backed up going to a slow client. This may be useful for detecting client disconnects as well.

HT: LeoNerd

zostay commented 9 years ago

I am recommending a Supply be provided in an extension named p6sgix.body.blocked that emits True whenever the server polls and discovers the output is blocking and False every time it is not. Since NBIO is not implemented, this extension is moot for the time being.

zostay commented 9 years ago

I have added some extension for handling this today. These will require experimentation and review, but this is now initially complete.