Message4868
Logged In: YES
user_id=120658
To further elaborate on the problems with POST on Windows
95: without having reached any real understanding of the
problem I have found a tolerable workaround. By modifying
the default _rbufsize for class _fileobject in socket.py I
can get any POSTs with text length less than _rbufsize to
work. Here is the mod:
<pre>
class _fileobject:
def __init__(self, sock, mode, bufsize):
self._sock = sock
self._mode = mode
if bufsize < 0:
bufsize = 512
# SP 9 Aug 2001: default _rbufsize is too small,
crashing CGIHTTPServer on POST's
# This fix still only allows pages of less than
given buffer size to be updated,
# so the real fix has still to be discovered.
#self._rbufsize = max(1, bufsize)
self._rbufsize = max(16*1024, bufsize)
self._wbufsize = bufsize
self._wbuf = self._rbuf = ""
</pre>
-- StevePike |
|
Date |
User |
Action |
Args |
2007-08-23 13:54:37 | admin | link | issue427345 messages |
2007-08-23 13:54:37 | admin | create | |
|