https://bugzilla.novell.com/show_bug.cgi?id=466997
User poeml@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=466997#c15
--- Comment #15 from Peter Poeml 2009-01-23 06:38:24 MST ---
With Python 2.5, I can successfully send (PUT) an mmapped file twice. I didn't
test Python 2.6 though. I'm currently trying.
Craig, do you happen to get a timeout? I.e., a waiting time longer than what it
needs to send the file?
And could you please reproduce with the following modifications:
/usr/lib/python2.6/site-packages/osc/core.py (line 1457):
-if size < 1024*512:
+if size < 1:
/usr/lib/python2.6/httplib.py:
--- /dev/shm/httplib.py 2009-01-23 14:34:51.584294699 +0100
+++ /usr/lib/python2.6/httplib.py 2009-01-23 14:34:55.000000000 +0100
@@ -733,6 +733,7 @@
if self.debuglevel > 0: print "sendIng a read()able"
data=str.read(blocksize)
while data:
+ print repr(data)
self.sock.sendall(data)
data=str.read(blocksize)
else:
Then, use any small text file for testing instead of the large tarball. Like:
echo >> foobar
osc -d -H ci -m "commit a further byte to foobar" foobar
About the tcpdump: I looked at it, but the snaplength is far too small to
follow the traffic. When done with -s 8192, it might reveal something. But I
think the debugging path detailed above is more promising at the moment.
--
Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.