r3wp [groups: 83 posts: 189283]
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

World: r3wp

[Core] Discuss core issues

Bo
20-Jan-2007
[6828]
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
Bo
22-Jan-2007
[6875]
The lines directly above that read:

(000032) 1/20/2007 9:16:47 AM - lechnowsky (*IP*)> PASV

(000032) 1/20/2007 9:16:47 AM - lechnowsky (*IP*)> 227 Entering Passive 
Mode (192,168,1,20,15,187)
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> CWD somedir/

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 250 CWD successful. 
"/somedir" is current directory.
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> TYPE A

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 200 Type set to 
A
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> LIST

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 150 Connection 
accepted

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 226 Transfer OK
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> CWD /

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 250 CWD successful. 
"/" is current directory.

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> PORT (ip and port 
info here)

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 200 Port command 
successful
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> CWD somedir/

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 250 CWD successful. 
"/somedir" is current directory.
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> TYPE A

(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> 200 Type set to 
A
(000032) 1/21/2007 9:16:47 AM - lechnowsky (*IP*)> LIST
Oldes
22-Jan-2007
[6876x2]
If I setup my firewall to accept incomming connections, I got:
Net-log: "150 Opening data channel for directory list."
Net-log: "Closing listen port 3797"
Net-log: "Closing data port 69.12.157.73 3797 62038"
Net-log: [none ["226" "250"]]
Net-log: "226 Transfer OK"
Net-log: "Opening listen port 3798"
Net-log: [["PORT" port/locals/active-check] "200"]
Net-log: "200 Port command successful"
Net-log: ["TYPE I" "200"]
Net-log: "200 Type set to I"
Net-log: [["RETR" port/target] ["150" "125"]]
Net-log: "150 Opening data channel for file transfer."
Net-log: "Closing listen port 3798"
Net-log: ["low level read of " 2048 "bytes"]
Net-log: ["low level read of " 2048 "bytes"]
Net-log: "Closing data port 69.12.157.73 3798 62039"
Net-log: [none ["226" "250"]]
Net-log: "226 Transfer OK"
Net-log: "Caching cmd-port 69.12.157.73 3796 21"
== "now 22-Jan-2007/16:11:08+1:00"
From my point of view, Rebol is working with passive and active mode 
as well. What's exactly your problem?