homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author oztourer
Recipients
Date 2001年08月09日.12:27:06
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
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
History
Date User Action Args
2007年08月23日 13:54:37adminlinkissue427345 messages
2007年08月23日 13:54:37admincreate

AltStyle によって変換されたページ (->オリジナル) /