[99s-extend] timeouts and slow clients in cowboy loop handler
akonsu
akonsu at gmail.com
Fri Sep 20 20:47:54 CEST 2013
Hi,
I am using loop handler and I stream from it:
info({stream, Part}, Req, S) ->
ok = cowboy_req:chunk(Part, Req),
{loop, Req, S, hibernate};
I have two questions:
1. on timeouts cowboy sends 204 No Content. In my case it is not the right
response because I may have already sent some data. Is there a way to send
a custom response?
2. how to check if the client is too slow and is not reading the response
stream fast enough? If this happens, then I need to disconnect.
I can live without 1. but I need to figure out 2. Please help.
thank you!
Konstantin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ninenines.eu/archives/extend/attachments/20130920/6e3fa036/attachment.html>
More information about the Extend
mailing list