Menu

#19 Problem sharing empty file

v0.0.*
open
nobody
Server (7)
5
2007-01-18
2007-01-18
No

With ConcurrenceServer-0.0.5.2, fired up to share an empty file and observed this error (stack trace below) as a client tried to connect to the file (client was unable to connect - failed to fire up the editor).

Traceback (most recent call last):
File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 53, in callWithLogger
return callWithContext({"system": lp}, func, *args, **kw)
File "/usr/lib/python2.4/site-packages/twisted/python/log.py", line 38, in callWithContext
return context.call({ILogContext: newCtx}, func, *args, **kw)
File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 59, in callWithContext
return self.currentContext().callWithContext(ctx, func, *args, **kw)
File "/usr/lib/python2.4/site-packages/twisted/python/context.py", line 37, in callWithContext
return func(*args,**kw)
--- <exception caught here> ---
File "/usr/lib/python2.4/site-packages/twisted/internet/selectreactor.py", line 139, in _doReadOrWrite
why = getattr(selectable, method)()
File "/usr/lib/python2.4/site-packages/twisted/internet/tcp.py", line 348, in doRead
return self.protocol.dataReceived(data)
File "/usr/lib/python2.4/site-packages/twisted/protocols/basic.py", line 232, in dataReceived
why = self.lineReceived(line)
File "ConcurrenceServer.py", line 321, in lineReceived
self.codes[ code ]( arg )
File "ConcurrenceServer.py", line 259, in mRequestFile
self.sendFile( fHash )
File "ConcurrenceServer.py", line 142, in sendFile
splitFile = splitEqual( files[ key ]['data'] , pieces )
File "ConcurrenceServer.py", line 60, in splitEqual
arg2 = range( 0 , pieces * length , length )
exceptions.ValueError: range() step argument must not be zero

Discussion


Log in to post a comment.