<br><div class="gmail_quote"><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">My thinking is that the server *creates* the environ dictionary, so it can just keep a reference to it and update it as needed. Is middleware allowed to replace environ with another dict instance before passing it to the application? I wasn't aware that this was allowed, but if it is, then I see the problem.<br>
<br>
The solution would probably be for the application to pass a mutable object (e.g. an empty list) to readable/writable that the server could set a timeout flag on.<br>
</blockquote></div><br>How about a environ['x-wsgiorg.async'].timeout ? I do something like that in cogen.<br clear="all"><br>-- <br><a href="http://ionelmc.wordpress.com">http://ionelmc.wordpress.com</a><br>