[Pidgin] #8477: Large files can not be transferred via Bonjour

Pidgin trac at pidgin.im
Sat Feb 21 08:03:12 EST 2009


#8477: Large files can not be transferred via Bonjour
----------------------+-----------------------------------------------------
 Reporter:  davidgro  |           Owner:  datallah
     Type:  defect    |          Status:  new     
Component:  Bonjour   |         Version:  2.5.2   
 Keywords:            |   Launchpad_bug:          
----------------------+-----------------------------------------------------
 Using Pidgin 2.5.2 on Kubuntu I tried to transfer a 4.2GiB file over
 Bonjour to another PC, also running Pidgin 2.5.2 on Kubuntu.
 The sending PC - which was x86-64 - stated the correct size, but the
 receiving PC (i686) thought the file was only 2GiB-1 (2147483647 bytes)
 which is the max for a signed 32-bit integer - and it actually canceled
 the transfer (claiming success) when that many bytes had been received.
 The sending PC correctly reported the cancellation.

 I then tried sending a 4.26GiB file back from the 32-bit PC to the 64-bit.
 This time the sending and receiving PCs both reported the file size as
 .26GiB (as in 263MiB) which is the size mod 4GiB (another run-in with a
 32-bit int).  And the transfer stopped "successfully" on both ends after
 only that much had been sent.

 The next thing I tried had an odd result: I sent a 6.8GiB file from the
 32-bit PC, and it reported 2.8GiB on the sender and 0 bytes on the 64-bit
 receiver - so it was x out of 0 bytes while sending, which it called 0% -
 and Unknown for size and remaining.  The receiver did not stop the
 transfer by itself when the sender stopped at 2.8GiB.

 I do not have a second PC with a 64-bit OS to test with.  I suspect it
 would hit a 2 or 4 GiB limit anyway.
 All file systems involved were ext2 or ext3 and support files over 4GiB.

 This issue keeps Bonjour from being a Very useful method for sending large
 files across a LAN when the sending PC is not setup as a server. (Or would
 be too annoying to reconfigure for just one file)  Please consider fixing
 this even if that requires an update of the Bonjour IM protocol (It's open
 right? http://xmpp.org/extensions/xep-0174.html or something? although
 that doesn't mention files)

 Note: I was inspired to test this by a comment in bug 1185, but that bug
 is about the GUI format strings, and is protocol agnostic.  This bug is
 about the transfers themselves failing and is specific to Bonjour because
 that is where I feel it is most urgent to fix due to the LAN environment
 making such transfers more feasible/desirable. (Of course I feel any other
 other protocols that can be fixed should be)

-- 
Ticket URL: <http://developer.pidgin.im/ticket/8477>
Pidgin <http://pidgin.im>
Pidgin


More information about the Tracker mailing list