krzdzi / libjingle

Automatically exported from code.google.com/p/libjingle
0 stars 0 forks source link

Release mode file transfer #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. compile pcp in release mode.
2. transfer files with release mode pcp.  On some transfers (I don't know
how to reproduce exactly) receiving party will be notified the transfer
failed, while sending party gets notified of successful transfer
3.

What is the expected output? What do you see instead?
Transfer should succeed.  Instead, sending machine completes transfer but
receiving machine gets transfer failed notification.  

What version of the product are you using? On what operating system?
libjingle 0.4 on windows XP

Please provide any additional information below.
Only happens in Release mode.  Win32Filesystem::MoveFileI was failing. 
Changing line 143 of /talk/base/win32filesystem.cc to the following fixed
the issue for me:
if(rename(old_path.pathname().c_str(), new_path.pathname().c_str()) !=0) {

Original issue reported on code.google.com by doug.per...@gmail.com on 30 Mar 2007 at 6:18

GoogleCodeExporter commented 9 years ago

Original comment by juberti@google.com on 9 Sep 2011 at 7:27