Package: bittornado
Version: 0.3.18-8
Severity: normal

When launching bittorrent (btdownloadmany(curses) in my case), it often
ceases to do anything after a while, without any error message. It just
doesn't update its output or download anymore.

I added some debug code; it seems that it does not handle many open
files properly.

ERROR: "IO Error: unable to open somefile.dat: [Errno 24] Too many open files: 
'somefile.dat'"
_SHUTDOWN
SHUTDOWN
  File "/usr/bin/btlaunchmany", line 107, in <module>
    LaunchMany(config, HeadlessDisplayer())
  File "/var/lib/python-support/python2.5/BitTornado/launchmanycore.py", line 
207, in __init__
    self.start()
  File "/var/lib/python-support/python2.5/BitTornado/launchmanycore.py", line 
215, in start
    self.handler.listen_forever()
  File "/var/lib/python-support/python2.5/BitTornado/ServerPortHandler.py", 
line 233, in listen_forever
    self.rawserver.listen_forever(self)
  File "/var/lib/python-support/python2.5/BitTornado/RawServer.py", line 144, 
in listen_forever
    self.sockethandler.handle_events(events)
  File "/var/lib/python-support/python2.5/BitTornado/SocketHandler.py", line 
319, in handle_events
    s.handler.data_came_in(s, data)
  File "/var/lib/python-support/python2.5/BitTornado/BT1/Encrypter.py", line 
394, in data_came_in
    self.read(s)
  File "/var/lib/python-support/python2.5/BitTornado/BT1/Encrypter.py", line 
479, in _read2
    x = self.next_func(m)
  File "/var/lib/python-support/python2.5/BitTornado/BT1/Encrypter.py", line 
360, in read_message
    self.connecter.got_message(self, s)
  File "/var/lib/python-support/python2.5/BitTornado/BT1/Connecter.py", line 
326, in got_message
    if c.download.got_piece(i, toint(message[5:9]), message[9:]):
  File "/var/lib/python-support/python2.5/BitTornado/BT1/Downloader.py", line 
161, in got_piece
    if not self.downloader.storage.piece_came_in(index, begin, piece, 
self.guard):
  File "/var/lib/python-support/python2.5/BitTornado/BT1/StorageWrapper.py", 
line 652, in piece_came_in
    while self._clear_space(index):
  File "/var/lib/python-support/python2.5/BitTornado/BT1/StorageWrapper.py", 
line 624, in _clear_space
    self.write_raw(n, 0, self.alloc_buf[:self._piecelen(n)])
  File "/var/lib/python-support/python2.5/BitTornado/BT1/StorageWrapper.py", 
line 510, in write_raw
    self.failed('IO Error: ' + str(e))
  File "/var/lib/python-support/python2.5/BitTornado/download_bt1.py", line 
476, in _failed
    self.errorfunc(reason)
  File "/var/lib/python-support/python2.5/BitTornado/launchmanycore.py", line 
153, in error
    self._shutdown()
  File "/var/lib/python-support/python2.5/BitTornado/launchmanycore.py", line 
114, in _shutdown
    self.shutdown(False)
  File "/var/lib/python-support/python2.5/BitTornado/launchmanycore.py", line 
122, in shutdown
    traceback.print_stack()

- the traceback is created by added debug code in shutdown().

Obviously this happens only with many concurrent torrents. Probably
this exception should be handled gracefully (without letting
bittornado hang altogether), or some option for limiting the number
of concurrent downloads should be added (or it it there already?
Didn't find something along that line).

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (650, 'testing'), (600, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.27.7 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages bittornado depends on:
ii  python                        2.5.2-3    An interactive high-level object-o
ii  python-support                0.8.4      automated rebuilding support for P

Versions of packages bittornado recommends:
ii  mime-support                  3.44-1     MIME files 'mime.types' & 'mailcap
pn  python-crypto                 <none>     (no description available)

Versions of packages bittornado suggests:
pn  bittornado-gui                <none>     (no description available)
pn  python-psyco                  <none>     (no description available)

-- no debconf information



--
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to