ASF Bugzilla – Attachment 27122 Details for
Bug 51324
When OutputBuffer.doFlush gets Exception, doFlush gets stuck to true
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch
fix.patch (text/plain), 1.12 KB, created by
Jeremy Norris
on 2011-06-07 06:12:53 UTC
(
hide
)
Description:
Patch
Filename:
MIME Type:
Creator:
Jeremy Norris
Created:
2011-06-07 06:12:53 UTC
Size:
1.12 KB
patch
obsolete
>Index: java/org/apache/catalina/connector/OutputBuffer.java >=================================================================== >--- java/org/apache/catalina/connector/OutputBuffer.java (revision 1132867) >+++ java/org/apache/catalina/connector/OutputBuffer.java (working copy) >@@ -228,6 +228,7 @@ > > bb.recycle(); > closed = false; >+ doFlush = false; > suspended = false; > > if (conv!= null) { >@@ -310,15 +311,18 @@ > if (suspended) > return; > >- doFlush = true; >- if (initial) { >- coyoteResponse.sendHeaders(); >- initial = false; >+ try { >+ doFlush = true; >+ if (initial) { >+ coyoteResponse.sendHeaders(); >+ initial = false; >+ } >+ if (bb.getLength() > 0) { >+ bb.flushBuffer(); >+ } >+ } finally { >+ doFlush = false; > } >- if (bb.getLength() > 0) { >- bb.flushBuffer(); >- } >- doFlush = false; > > if (realFlush) { > coyoteResponse.action(ActionCode.CLIENT_FLUSH,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 51324
:
27114
| 27122