<div dir="ltr">Ah awesome that clears it up, thanks! I've never had to deal with HTTP requests with content bodies before.<div><br></div><div>I presumed that the .read() would be pulling bytes from the network. I presumed wrong :)</div>
<div><br></div><div>Thanks!</div><div><br></div><div>Paul</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On 5 September 2013 12:24,  <span dir="ltr"><<a href="mailto:exarkun@twistedmatrix.com" target="_blank">exarkun@twistedmatrix.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 08:50 am, <a href="mailto:poalman@gmail.com" target="_blank">poalman@gmail.com</a> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hey,<br>
<br>
Thanks for your reply! The json data should never be too long so I'm not<br>
worried about the memory usage, I need the whole json object to start<br>
working anyway realistically - I was more concerned about blocking reading<br>
the data from the network - specifically the request.content.read(), if the<br>
client happens to be sending it very slowly this would block everything up<br>
right? - or would this not be an issue?<br>
<br>
Maybe because I have fairly small content bodies I wont have to worry?<br>
</blockquote>
<br></div>
Your resource isn't asked to render a response until the request has been fully received.  Request.content is a StringIO (if it is small) or a temporary file (if it is larger).  Reading from the temporary file blocks for a little bit since disks are slow but unless your system is seriously loaded you can usually disregard this.<br>

<br>
Jean-Paul<div class="HOEnZb"><div class="h5"><br>
<br>
______________________________<u></u>_________________<br>
Twisted-Python mailing list<br>
<a href="mailto:Twisted-Python@twistedmatrix.com" target="_blank">Twisted-Python@twistedmatrix.<u></u>com</a><br>
<a href="http://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python" target="_blank">http://twistedmatrix.com/cgi-<u></u>bin/mailman/listinfo/twisted-<u></u>python</a><br>
</div></div></blockquote></div><br></div>