How should HTTP server implementation handle internal errors? -


i'm implementing simple http server. since expect amount of data per request quite large, make sense me send response in smaller chunks, clients able process data continuously stream , don't need wait last bit.

eager may try out, there 1 thing troubling me: should when server encounters error after portion of response has been transmitted client? there http mechanism tell client discard part of response has arrived far?

thanks in advance, pete.

http doesn't have here, tweak your stream's format/protocol send status/error codes on it. example, start every chunk status code.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -