ASF Bugzilla – Attachment 36661 Details for
Bug 63568
Allow keeping tcpNoDelay untouched (default)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
hotfix to enable Tomcat listening on an inherited unix domain socket
tomcat-tcpNoDelay-1.diff (text/plain), 826 bytes, created by
František Kučera <xkucf03/>
on 2019-07-16 20:36:22 UTC
(
hide
)
Description:
hotfix to enable Tomcat listening on an inherited unix domain socket
Filename:
MIME Type:
Creator:
František Kučera <xkucf03/>
Created:
2019-07-16 20:36:22 UTC
Size:
826 bytes
patch
obsolete
>diff --git a/java/org/apache/tomcat/util/net/SocketProperties.java b/java/org/apache/tomcat/util/net/SocketProperties.java >index a5573b0231..245b29507f 100644 >--- a/java/org/apache/tomcat/util/net/SocketProperties.java >+++ b/java/org/apache/tomcat/util/net/SocketProperties.java >@@ -201,7 +201,11 @@ public class SocketProperties { > if (soTimeout != null && soTimeout.intValue() >= 0) > socket.setSoTimeout(soTimeout.intValue()); > if (tcpNoDelay != null) >- socket.setTcpNoDelay(tcpNoDelay.booleanValue()); >+ try { >+ socket.setTcpNoDelay(tcpNoDelay.booleanValue()); >+ } catch (SocketException e) { >+ // option is not supported - ignore >+ } > } > > public void setProperties(ServerSocket socket) throws SocketException{ >
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 63568
: 36661