Bug 29015

Summary: Failed to cancel incoming FT
Product: Telepathy Reporter: Guillaume Desmottes <guillaume.desmottes>
Component: butterflyAssignee: Telepathy bugs list <telepathy-bugs>
Status: RESOLVED FIXED QA Contact: Telepathy bugs list <telepathy-bugs>
Severity: normal    
Priority: medium    
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:

Description Guillaume Desmottes 2010-07-12 02:20:43 UTC
I received an incoming FT and accept it. While the file was transfering I cancel the FT in Empathy.
According to Empathy the FT is still transferring and Butterfly continues to write it on the closed socket:


papyon/papyon.transport-DEBUG: 12/07/2010 11:18:05.110896: <<< MSG xxxxxx@gmail.com Xavier%20Claessens 302
	P2P-Dest: 'bhshot_cassidy@hotmail.com'\r\n
	Content-Type: 'application/x-msnmsgrp2p'\r\n
	MIME-Version: '1.0'\r\n
	\r\n
	53 de a1 78 5a 04 24 4a 9a 14 05 00 00 00 00 00
	a4 a0 ce 2b 00 00 00 00 b2 04 00 00 30 00 00 01
	7a 4f e5 76 00 00 00 00 00 00 00 00 00 00 00 00
	[1202 bytes of data]
	00 00 00 02
stderr-ERROR: 12/07/2010 11:18:05.112354: Traceback (most recent call last):
stderr-ERROR: 12/07/2010 11:18:05.112539:   File "/usr/lib/pymodules/python2.6/papyon/msnp2p/transport/transport_manager.py", line 112, in _on_chunk_received
stderr-ERROR: 12/07/2010 11:18:05.112812:     blob.append_chunk(chunk)
stderr-ERROR: 12/07/2010 11:18:05.112997:   File "/usr/lib/pymodules/python2.6/papyon/msnp2p/transport/TLP.py", line 287, in append_chunk
stderr-ERROR: 12/07/2010 11:18:05.121527:     self.data.write(chunk.body)
stderr-ERROR: 12/07/2010 11:18:05.122006:   File "/usr/lib/python2.6/dist-packages/butterfly/channel/file_transfer.py", line 322, in write
stderr-ERROR: 12/07/2010 11:18:05.122549:     self._socket.send(data)
stderr-ERROR: 12/07/2010 11:18:05.123007:   File "/usr/lib/python2.6/socket.py", line 165, in _dummy
stderr-ERROR: 12/07/2010 11:18:05.123543:     raise error(EBADF, 'Bad file descriptor')
stderr-ERROR: 12/07/2010 11:18:05.124027: socket.error: [Errno 9] Bad file descriptor
Comment 1 Alban Crequy 2010-08-13 04:27:25 UTC
I have also seen this error while canceling File Transfers in Butterfly:

   string "Traceback (most recent call last):
  File "/var/lib/python-support/python2.5/dbus/service.py", line 702, in _message_cb
    retval = candidate_method(self, *args, **keywords)
  File "/usr/lib/python2.5/site-packages/butterfly/channel/file_transfer.py", line 174, in Close
    telepathy.FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_CANCELLED)
AttributeError: 'module' object has no attribute 'FILE_TRANSFER_STATE_CHANGE_REASON_LOCAL_CANCELLED'
"
Comment 2 Louis-Francis Ratté-Boulianne 2010-08-13 20:36:15 UTC
Fixed in telepathy-butterfly 0.5.13

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.