Re: WSGI: allowing short reads

Antoine Pitrou <[email protected]> Sat, 27 Sep 2014 23:45:32 +0200
Newsgroups gmane.comp.python.web
Message-ID <20140927234532.4719f437@fsol>
On Sun, 28 Sep 2014 10:43:33 +1300
Robert Collins
<[email protected]> wrote:
> >
> > It was in the context of improving streamed unpickling, which is
> > a problem a bit similar - but less horrible - to JSON unserializing;
> > since then, the problem was solved in a different way by adding a
> > framing layer to pickle protocol 4 :-).
> 
> BufferedReader solves this well though, doesn't it?

Assuming it's the only one accessing the raw stream, yes.

Regards

Antoine.


_______________________________________________
Web-SIG mailing list
[email protected]
Web SIG: http://www.python.org/sigs/web-sig
Unsubscribe: https://mail.python.org/mailman/options/web-sig/gcpw-web-sig%40m.gmane.org