You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@httpd.apache.org by jo...@apache.org on 2026/10/05 07:24:48 UTC

svn commit: r1938786 - httpd/httpd/trunk/test/modules/proxy

Author: jorton
Date: Mon Oct  5 07:24:48 2026
New Revision: 1938786

Log:
Fix broken uwsgi test on windows:

* test/modules/proxy/env.py (ProxyBackend._process): read 8192 bytes
  on Windows and 4096 elsewhere to avoid short reads on win32.

Submitted by: Paul Lodge <paullodge outlook.com>
GitHub: closes #785

Modified:
   httpd/httpd/trunk/test/modules/proxy/env.py

Modified: httpd/httpd/trunk/test/modules/proxy/env.py
==============================================================================
--- httpd/httpd/trunk/test/modules/proxy/env.py	Mon Oct  5 06:37:20 2026	(r1938785)
+++ httpd/httpd/trunk/test/modules/proxy/env.py	Mon Oct  5 07:24:48 2026	(r1938786)
@@ -2,6 +2,7 @@ import inspect
 import logging
 import os
 import socket
+import sys
 from threading import Thread
 
 from pyhttpd.certs import CertificateSpec
@@ -45,13 +46,14 @@ Content-Type: text/html
 Content-Length: 5
 
 Hello""".encode()
-
+    
     def _process(self):
+        _read_buffer = 8192 if sys.platform == "win32" else 4096
         while not self._done:
             try:
                 c, client_address = self._socket.accept()
                 try:
-                    data = c.recv(4096)
+                    data = c.recv(_read_buffer)
                     # capture request to backend
                     self._request = data
                     c.sendall(self._make_response(data))