World: r3wp
[Core] Discuss core issues
older newer | first last |
[unknown: 9] 20-Jan-2007 [6825] | We posted the complete source to our FTP client interface, you will find the code to handle most of this. |
Volker 20-Jan-2007 [6826] | ftp-gadget i guess? http://www.rebol.org/cgi-bin/cgiwrap/rebol/view-script.r?script=ftpgadget-package.r And you can try it with the gui first :) if not, can you make an account to trace and try? |
Bo 20-Jan-2007 [6827x2] | Sunanda: Yes, I am running in passive mode. |
Reichart: Thanks for posting the source code. Unfortunately, it doesn't look like it can be used like the standard FTP protocol in Rebol as it is integrated with your GUI. | |
[unknown: 9] 20-Jan-2007 [6829] | Shame. I remmember when we had to build that, I had indeed asked it be made a module, so that suprises me, |
Bo 20-Jan-2007 [6830] | I downloaded the source code and upon quick inspection, it doesn't look like I could use the FTP by entering ftp://user:[pass-:-server], but I could be wrong. |
Anton 21-Jan-2007 [6831] | Bo, I've done a bit of FTP hacking. Maybe I can find the bug. |
Volker 21-Jan-2007 [6832] | does ftp-gadget work with your server by gui? eg is the ftp-part good enough? If not, where can we test against that server? |
Oldes 21-Jan-2007 [6833] | Probably because some servers require passive mode? ;-) |
Volker 21-Jan-2007 [6834] | Bo: Also, I am using FTP in passive mode. |
Oldes 21-Jan-2007 [6835] | Bo: arent you behind firewall? |
Volker 21-Jan-2007 [6836] | Oops, wanted to cite bo, ntoto address him. He said he uses passiv modea while ago. |
sqlab 22-Jan-2007 [6837] | I do not know, if it will help you, but I check the cached connections in systems/schemes/ftp/handler/connections for any already closed connection before doing an ftp action. |
Volker 22-Jan-2007 [6838] | is ftp-gadget still much better then ftp? looks like a module with gui-callbacks to me. and i spottet the word "async" somewhere. |
sqlab 22-Jan-2007 [6839] | if all [ lock: wait join copy [0:0:0.001] system/schemes/ftp/handler/connections ; problems with closed, but still cached connections none? copy lock ] [ close lock remove find system/schemes/ftp/handler/connections lock ] |
Henrik 22-Jan-2007 [6840] | is there a way to "trace" where you read or 'do'ed a file from? would be handy if you had a script that could tell whether it was run from a webserver or from a local disk |
Anton 22-Jan-2007 [6841] | I don't think you can. But check system/options and system/script . You could also pass an argument in using do/args. |
Henrik 22-Jan-2007 [6842] | I think this could be really useful. In fact I think I'll RAMBO it. :-) |
Anton 22-Jan-2007 [6843] | I agree. But be careful what you wish for. |
Henrik 22-Jan-2007 [6844] | security? |
Volker 22-Jan-2007 [6845] | webserver, disk, random example or exactly that? becausewith webserver (-c) you have stuff in the cgi-object. Carl uses that to decide if it is a testrun. |
Bo 22-Jan-2007 [6846x2] | The problem I'm having is that most FTP transfers work fine, but somewhere along the line (say after 50 FTP connections or perhaps as many as a couple thousand FTP connections) one of the connections hangs up (presumably because the FTP server returned an unexpected response, like not being able to open a directory). |
I've set up an FTP user for testing on our server called "rebol3" with the password "rebol3". This user has all permissions in its sandbox directory. Feel free to test, but as I said, it may take thousands of FTP requests to get one that locks Rebol up. | |
Volker 22-Jan-2007 [6848x2] | if it is because of a response one could try to provoke such errors. with some luck.. |
url of that server? | |
Bo 22-Jan-2007 [6850] | Sorry for my lack of attention. The URL is ftp://rebol3:[rebol3-:-69-:-12-:-157-:-73]/ |
Volker 22-Jan-2007 [6851] | a special version of rebol, or with everyone? |
Bo 22-Jan-2007 [6852] | I'm using the prot.r from SDK-2-6-2. |
Volker 22-Jan-2007 [6853] | unusual filenames? since it hangs when getting the directory? |
Bo 22-Jan-2007 [6854x2] | Volker, I presume that is you connecting to the FTP server. You got two 425 errors from the server the first two times you connected. That's the same part where Rebol was hanging up for me. |
It could be due to unusual filenames, but it doesn't always lock up on the same file. | |
Oldes 22-Jan-2007 [6856] | And are you sure you don't have bad FTP server? |
Volker 22-Jan-2007 [6857] | filezilla got errors too.What triggeredt hem? server full? |
Bo 22-Jan-2007 [6858x2] | No. I may have a bad FTP server, but I am still concerned that Rebol would lock up even if the FTP server was bad. |
That directory currently has 26.1GB free. | |
Volker 22-Jan-2007 [6860] | i meant to many users. because filezillas connectiong was rejected. |
Oldes 22-Jan-2007 [6861] | it seems to be working |
Volker 22-Jan-2007 [6862] | Bo says maby some k connections needed |
Oldes 22-Jan-2007 [6863] | I cannot afford uploading MB of data now |
Volker 22-Jan-2007 [6864x2] | (000032) 1/20/2007 9:16:47 AM - lechnowsky (*IP*)> 150 Opening data channel for directory list (000032) 1/20/2007 9:16:58 AM - lechnowsky (*IP*)> 425 Can't open data connection (000032) 1/20/2007 9:56:52 AM - lechnowsky (*IP*)> disconnected |
that was filezilla. | |
Oldes 22-Jan-2007 [6866] | that's normal, use passive mode |
Bo 22-Jan-2007 [6867] | I was using passive mode in the above. |
Volker 22-Jan-2007 [6868] | rebol tries to open the channel and then hangs. |
Oldes 22-Jan-2007 [6869] | the error above is, that you are using active mode |
Volker 22-Jan-2007 [6870] | that 425 is from the server when the firewall blocks? |
Oldes 22-Jan-2007 [6871] | the error above is from server, it expects, that you open connection where you will accept data from server. You don't open any, so it sends you this message after some time |
Volker 22-Jan-2007 [6872] | i thought it is reversed, the server tries to open a connection back to me. |
Oldes 22-Jan-2007 [6873x2] | but it's true that Rebol is opening listen port, in my case it's Net-log: "Opening listen port 3790" |
but I block incomming messages, so I cannot use active mode | |
older newer | first last |