You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by co...@apache.org on 2022/06/04 12:06:23 UTC

svn commit: r1901619 - /httpd/httpd/trunk/server/core_filters.c

Author: covener
Date: Sat Jun  4 12:06:23 2022
New Revision: 1901619

URL: http://svn.apache.org/viewvc?rev=1901619&view=rev
Log:
force to 0 on 1.6 on Windows

Modified:
    httpd/httpd/trunk/server/core_filters.c

Modified: httpd/httpd/trunk/server/core_filters.c
URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/server/core_filters.c?rev=1901619&r1=1901618&r2=1901619&view=diff
==============================================================================
--- httpd/httpd/trunk/server/core_filters.c (original)
+++ httpd/httpd/trunk/server/core_filters.c Sat Jun  4 12:06:23 2022
@@ -25,6 +25,7 @@
 #include "apr_fnmatch.h"
 #include "apr_hash.h"
 #include "apr_thread_proc.h"    /* for RLIMIT stuff */
+#include "apr_version.h"
 
 #define APR_WANT_IOVEC
 #define APR_WANT_STRFUNC
@@ -493,6 +494,11 @@ static void delete_meta_bucket(apr_bucke
     apr_bucket_delete(bucket);
 }
 
+#if defined(WIN32) && (APR_MAJOR_VERSION == 1 && APR_MINOR_VERSION <= 6)
+#undef APR_TCP_NOPUSH_FLAG
+#define APR_TCP_NOPUSH_FLAG 0
+#endif
+
 static APR_INLINE void sock_nopush(apr_socket_t *s, int to)
 {
     /* Disable TCP_NOPUSH handling on OSX since unsetting it won't push