There isn't enough information here to duplicate
the problem. Let me struggle for another day
to try and make it reproducable with a fresh
CVS image. Sorry to consume time.
On Sun, Aug 19, 2001 at 03:02:13PM -0400, Clark C . Evans wrote:
| Ok. I've had a good amount of problems lately with file upload
| over a slow wire. I'm using about a 5-6 day old CVS snapshot
| (don't want to "cvs update" beacuse I'd have to re-apply the
| pathContext patch and then test...) Anyway, these problems
| most likely haven't gone away in the last few days... so here goes.
| Context: When doing file upload of a pretty large file (3MB)
| over a slow connection to the FileUpload example,
| modified to include the following lines (to copy
| the temp file to an alternate location):
| name = hFile.filename.split('\\')[-1].split('/')[-1]
| name = name.replace(' ','_').replace("'",'_')
| name = name.replace("&","_").replace("<","_")
| fno = hFile.file.fileno()
| sz = os.fstat(fno)[stat.ST_SIZE]
| pth = '/temp/343/' + name
| to = open('/temp/343/'+name,"wb")
| cnt = hFile.file.read()
| Platform: Debian "Potato" Linux, with Python 2.1.1 and
| Apache Apache/1.3.9 (Unix) Debian/GNU mod_webkit/0.5
| mod_python/2.7.3 Python/2.1 PHP/4.0.3pl1 mod_ssl/2.4.10
| OpenSSL/0.9.4 on Linux.
| Also: Apache/1.3.20 (Win32) on Windows 2000.
| UserAgent: MSIE 5.5
| Problem: The first problem is with file-uploads using
| the mod_webkit on the Linux box; it takes about
| 4-5 min to upload the file. Everything is great
| during the upload, the temp file is gaining in size,
| other requests are being served, etc.
| Then, as soon as the file is finished uploading
| (temp file matches the file sent). The AppServer
| crashes with no log entires. Apache does not crash,
| but no log entries are made.
| When I switch to use the cgi-adapter, both
| OneShot.cgi and WebKit.cgi; everything
| works ok on both platform.
| Problem: This is a slight variant, during the file upload
| the user presses STOP on their browser, say 50
| seconds into the upload.
| In this case, with the WebKit.cgi adapter (on
| both platforms) or the mod_webkit (on linux),
| the app server dies. No messages, no logs.
| Interestingly, when I add a single print
| command within the code above... the app server
| does not die... and instead prints... (on Win32)
| WebKit.CGIAdapter: Error while responding to request (unknown)
| Python exception:
| Traceback (most rece nt call last):
| File "c:\work\webware\WebKit\CGIAdapter.py", line 69, in run
| response = self.transactWithAppServer(os.environ.data, myInput, host, port)
| "c:\work\webware\WebKit\Adapter.py", line 64, in transactWithAppServer
| "c:\work\webware\WebKit\CGIAdapter.py", line 101, in processResponse
| [Errno 22] Invalid argument
| Anyway... ALL I want to do is copy/move this temp file to
| a permanent location. *pulls hair out* (for last 6 hours)
| Webware-discuss mailing list