Bug 1309 - multiple file FTP's seem to hang
: multiple file FTP's seem to hang
Status: RESOLVED FIXED
: GridFTP
GridFTP
: 2.0
: PC All
: P2 major
: ---
Assigned To:
:
:
:
:
  Show dependency treegraph
 
Reported: 2003-10-23 02:48 by
Modified: 2003-11-24 17:56 (History)


Attachments
Fix for 2.4.3 and 3.0.2 release (760 bytes, patch)
2003-11-21 12:42, Mike Link
Details


Note

You need to log in before you can comment on or make changes to this bug.


Description From 2003-10-23 02:48:26

    
------- Comment #1 From 2003-10-23 02:52:23 -------
Have tried this on the mailing list - to no avail - so I'm gona raise it as a 
bug - either code or lack of documentation !  Although I'm not certain the code
below should work.

We are using COG-1.1 and GT 2.4.3 - we have just upgraded from GT 2.2.3 - which
showed no problem - although I have been unable to test this exact code against 
2.2.3 since I no longer have access to it - I believe the code this test is 
based on used to work on gt 2.2.3.



I have a simple GRIDFtp test program I would like to make work – help please !

My code hangs during the 2nd file transfer – I guess I haven’t reset the server 
properly after the first file transfer – I’ve tried resetting the server mode – 
as in the GirdFTP's programmer's guide - but have had no joy.

Any suggestions that achieve multiple (client to server) file transfer without 
closing the client would be good !

----------------------------------------------------------------
package test;

import java.io.IOException;

import org.globus.ftp.DataChannelAuthentication;
import org.globus.ftp.DataSource;
import org.globus.ftp.FileRandomIO;
import org.globus.ftp.GridFTPClient;
import org.globus.ftp.GridFTPSession;
import org.globus.ftp.exception.ClientException;
import org.globus.ftp.exception.ServerException;
import org.globus.myproxy.MyProxyException;
import org.ietf.jgss.GSSException;

public class Test7
{
	public static void main(String[] s) throws GSSException, IOException, 
MyProxyException, ServerException, ClientException
	{
		GridFTPClient client = new GridFTPClient("myhost.mydomain", 
2811);
		client.authenticate(null);
		
		client.setProtectionBufferSize(16384);
		client.setDataChannelAuthentication
(DataChannelAuthentication.SELF);
		client.setDataChannelProtection(GridFTPSession.PROTECTION_SAFE);
		client.setType(GridFTPSession.TYPE_IMAGE);

		DataSource source1 = new FileRandomIO(new 
java.io.RandomAccessFile("c:\\aaa", "r"));
		DataSource source2 = new FileRandomIO(new 
java.io.RandomAccessFile("c:\\aaa", "r"));
		DataSource source3 = new FileRandomIO(new 
java.io.RandomAccessFile("c:\\aaa", "r"));
		
		client.setPassive();
		client.setLocalActive();
		client.put("/home/abc/tmp1/a1",   source1,   null);
		source1.close();
		
		client.setPassive();
		client.setLocalActive();
		client.put("/home/abc/tmp1/a2",   source2,   null); 
		source2.close();
		
		client.setPassive();
		client.setLocalActive();
		client.put("/home/abc/tmp1/a3",   source3,	   null);
		source3.close();
	}
}

------- Comment #2 From 2003-10-31 09:25:45 -------
I have been able to test code against GT2.2 and GT2.4 installations - on GT2.2 
it works, on GT2.4 it does not.  One thing I notice is the debug output 
contains some version numbers: and the GT2.2 seems later than the GT2.4 !! Does 
this matter ?

Gt2.2 debug output :

- Control channel received: 220 blue02.iridis.soton.ac.uk GridFTP Server 1.7 
GSSAPI type Globus/GSI wu-2.6.2 (gcc32dbg, 1059689022-28) ready.

 

GT2.4 debug output :

- Control channel received: 220 escience-dept2.sesnet.soton.ac.uk FTP server 
(GridFTP Server 1.5 [GSI patch v0.5] wu-2.6.2(2) Thu Sep 11 13:17:12 CDT 2003) 
ready.

 

------- Comment #3 From 2003-11-05 02:01:05 -------
Hi - any just of an time estimate for this one.
------- Comment #4 From 2003-11-07 02:07:04 -------
This is a problem with the 2.4.3 server, I will try to release an update 
package some time next week.

Joe
------- Comment #5 From 2003-11-07 02:08:37 -------
great - thanks!
------- Comment #6 From 2003-11-08 00:10:53 -------
*** Bug 1353 has been marked as a duplicate of this bug. ***
------- Comment #7 From 2003-11-17 14:16:25 -------
*** Bug 1397 has been marked as a duplicate of this bug. ***
------- Comment #8 From 2003-11-20 02:21:32 -------
Hi, any news on a fix ? thanks ?
------- Comment #9 From 2003-11-21 12:42:55 -------
Created an attachment (id=266) [details]
Fix for 2.4.3 release
------- Comment #10 From 2003-11-21 12:45:20 -------
This bug does not exist in any versions other than 2.4.3 and 3.0.2, and the 
single patch will work for both versions.
------- Comment #11 From 2003-11-24 17:56:52 -------
An updated package with this fix has been released at 
http://www-unix.globus.org/toolkit/advisories.html