[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: FTPAPI question
Sender: Thomas Raddatz <thomas.raddatz@xxxxxxxxxxx>
Christian,
> has been that if you are moving really large files, one or the other
> server might time out in between, esp. as it is not multi-threaded.
I agree with. I did not consider the time it might take to transfer the file. However, using the
FTPAPI raw procedures it might be possible to get a chunk of the file and the put it immediately. The
get another piece and put it. Just kidding. No one would do that.
> It's just been a thought. ILE RPG can multi-thread pretty well, at least
> according to the docs. Of course, the current FTPAPI has too many global
Hm. I have no experiences using ILE RPG in a multi-threaded environment. I wished I had the time to
test it. We could get rid of the global variables by allocating memory and passing a pointer around
but that would break backward compatibility. Or we could put only that pointer into the MODS.
Thomas.
Christian schrieb:
Sender: Christian <chrisv5@xxxxxx>
Thomas,
I am not sure whether I correctly understand your question. On my
opinion "multiple sessions" does not necessarily mean that these
session are managed multi-threaded. But it can mean that you can open
multiple sessions at the same time and then "put" and "get" files from
here to there. E.g. having multiple session open you can read a
directory on one box and then transfer all the files to another box
without having to open and close the two sessions again and again.
well, in the above scenario one could simply download all the files from
the first server, disconnect and upload to the second server. My concern
has been that if you are moving really large files, one or the other
server might time out in between, esp. as it is not multi-threaded.
I think that it is not a good idea to use RPG in a multi-threaded
environment. I can not argue for that opinion in details. It is just a
feeling from inside myself.
It's just been a thought. ILE RPG can multi-thread pretty well, at least
according to the docs. Of course, the current FTPAPI has too many global
variables to be thread-safe. Anyway, I was not too serious about that...
Regards,
Christian
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubsribe from the list send mail
to majordomo@xxxxxxxxxxxxx with the body: unsubscribe ftpapi mymailaddr
-----------------------------------------------------------------------