[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FTPAPI question



Sender: Thomas Raddatz <thomas.raddatz@xxxxxxxxxxx>

Christian,

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.

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.

Thomas Raddatz.



Christian schrieb:
Sender: Christian <chrisv5@xxxxxx>

I have a couple of questions on my mind, but cannot really focus on them right now. Thus I hope that i am forgiven if I keep asking them one be one. Right now I'd like to know this:

Why is there support for multiple sessions in FTPAPI? It uses non-blocking sockets and it is not threaded, thus everything is sequential anyway. This is actually a problem cause most FTP servers I am aware of have the habit of timing out a connection rather quickly. Hence the "keep alive" stuff in many generic FTP clients (which is not handled by FTPAPI in any way).

I'd like to hear rationales and use cases for multiple sessions (so far, I have only heard about people having too few sessions; the very same who never close a session). I do not want to hear any evangelism. Fear not, I do not plan to remove support for multiple sessions (actually, I am more concerned about making them thread safe, if they aren't already), unless there is an unanimous vote for that. Just want to understand the need better.


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 -----------------------------------------------------------------------