ASF Bugzilla – Attachment 33209 Details for
Bug 58534
Repeated Conditional Test
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for similar problem for AprEndpoint
AprEndpoint.patch (text/plain), 2.46 KB, created by
Anthony Whitford
on 2015-10-25 19:25:04 UTC
(
hide
)
Description:
Patch for similar problem for AprEndpoint
Filename:
MIME Type:
Creator:
Anthony Whitford
Created:
2015-10-25 19:25:04 UTC
Size:
2.46 KB
patch
obsolete
>Index: java/org/apache/tomcat/util/net/AprEndpoint.java >=================================================================== >--- java/org/apache/tomcat/util/net/AprEndpoint.java (revision 1710467) >+++ java/org/apache/tomcat/util/net/AprEndpoint.java (working copy) >@@ -1483,7 +1483,7 @@ > info = addList.get(); > while (info != null) { > boolean comet = connections.get(Long.valueOf(info.socket)).isComet(); >- if (!comet || (comet && !processSocket(info.socket, SocketStatus.STOP))) { >+ if (!comet || !processSocket(info.socket, SocketStatus.STOP)) { > // Make sure the socket isn't in the poller before we close it > removeFromPoller(info.socket); > // Poller isn't running at this point so use destroySocket() >@@ -1500,8 +1500,7 @@ > for (int n = 0; n < rv; n++) { > boolean comet = connections.get( > Long.valueOf(desc[n*2+1])).isComet(); >- if (!comet || (comet && !processSocket( >- desc[n*2+1], SocketStatus.STOP))) { >+ if (!comet || !processSocket(desc[n*2+1], SocketStatus.STOP)) { > destroySocket(desc[n*2+1]); > } > } >@@ -1630,8 +1629,7 @@ > removeFromPoller(socket); > boolean comet = connections.get( > Long.valueOf(socket)).isComet(); >- if (!comet || (comet && !processSocket( >- socket, SocketStatus.TIMEOUT))) { >+ if (!comet || !processSocket(socket, SocketStatus.TIMEOUT)) { > destroySocket(socket); > addList.remove(socket); > closeList.remove(socket); >@@ -1779,8 +1777,7 @@ > if (!addToPoller(info.socket, wrapper.pollerFlags)) { > // Can't do anything: close the socket right > // away >- if (!comet || (comet && !processSocket( >- info.socket, SocketStatus.ERROR))) { >+ if (!comet || !processSocket(info.socket, SocketStatus.ERROR)) { > closeSocket(info.socket); > } > } else {
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 58534
:
33208
| 33209