File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -225,10 +225,10 @@ def _flush_some(self):
225
225
dobreak = False
226
226
227
227
while True :
228
-
229
228
outbuf = self .outbufs [0 ]
230
229
outbuflen = len (outbuf )
231
230
if outbuflen <= 0 :
231
+ # self.outbufs[-1] must always be a writable outbuf
232
232
if len (self .outbufs ) > 1 :
233
233
toclose = self .outbufs .pop (0 )
234
234
try :
@@ -298,7 +298,8 @@ def write_soon(self, data):
298
298
# the async mainloop might be popping data off outbuf; we can
299
299
# block here waiting for it because we're in a task thread
300
300
with self .outbuf_lock :
301
- if isinstance (data , ReadOnlyFileBasedBuffer ):
301
+ if data .__class__ is ReadOnlyFileBasedBuffer :
302
+ # they used wsgi.file_wrapper
302
303
self .outbufs .append (data )
303
304
nextbuf = OverflowableBuffer (self .adj .outbuf_overflow )
304
305
self .outbufs .append (nextbuf )
You can’t perform that action at this time.
0 commit comments