If you check the result of globus_ftp_client_operationattr_set_mode,
you'll see that ASCII and MODE E are not compatible, so it isn't set.
Pipelining requires MODE E. In general you should use different attrs
for unrelated operations.
Use globus_ftp_client_handleattr_set_cache_all to reuse the connection
across operations.
If you want to change a handleattr you'll have to re-init, but existing
connections will be killed.
Mike
On 4/11/2013 9:40 AM, Esma Yildirim wrote:
Hi
I have another related question. If I want to change a handle attribute
after an operation and start of another operation do I have reinit the
handle by calling handle_init?
Thanks
On Thu, Apr 11, 2013 at 2:49 PM, Esma Yildirim <[email protected]
<mailto:[email protected]>> wrote:
Hi
I am trying to combine ascii_list and pipelined_transfer code in
gt5.2.4 version gridftp client library test codes. What I wanna do
is to use the same handle for two different operations that require
different attribute settings without the tearing down the connection
to avoid extra overhead. But while the first operation is done
without an error the second fails. In the other examples multiple
same operations are carried out but there is no example of using
list and a transfer operation through the same handle. Attached is
the c file and at the bottom is the output I get:
esmas-MacBook-Pro:test esmayildirim$ time
./globus-ftp-client-pipelined-transfer-test -s
ftp://localhost:5000/Users/esmayildirim/Pictures/Scan.jpeg -d
ftp://localhost:5001/Users/esmayildirim/Documents/test-folder/Scanpp.jpeg
args parsed
ftp://localhost:5000/Users/esmayildirim/Pictures/Scan.jpeg
ftp://localhost:5001/Users/esmayildirim/Documents/test-folder/Scanpp.jpeg
.
..
FORM 20.docx
FORM 24 .docx
FORM 25.docx
no problem
done with an error: globus_ftp_client: the server responded with an
error
real0m1.033s
user0m0.014s
sys0m0.015s
I would appreciate it if you could help me out.
Thanks
Esma