Try connecting manually to the same server via an FTP client and see how
long it takes to respond if you send it an invalid login.  Could just be
the way the FTP server (mis)behaves.

Jim


-----Original Message-----
From: Matt Lewis <[EMAIL PROTECTED]>
To: Jim McAtee <[EMAIL PROTECTED]>; [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
Date: Sunday, August 20, 2000 5:06 PM
Subject: Re: Help with CFFTP


>Thanks for the help, Jim.  The strange thing is that it works fine if
>everything is valid (the IP, userid, and password are valid
>to get you logged in).  If any of the three are wrong, I see this
strange
>behavior.
>
>I have tried it without the timeout value being defined but saw the
same
>behavior.  I tried putting a RequestTimeout on the call to this page
>to make sure it wasn't the page itself timing out, and that also didn't
work.
>
>I'll try the STOPONERROR change to see if that helps.
>
>Thanks.
>
>At 12:02 AM 08/20/2000 -0600, Jim McAtee wrote:
>>Are you sure you're making the connection?  Does it work when
everything
>>is valid?  If not, the very first thing I'd do is test by using an FTP
>>client and see if you can connect and log in.  Then, I'd hard code the
>>server address, username, password, etc. to see if you can do it from
>>CF.
>>
>>Depending on the speed of other server and the network connection
>>between the servers, your timeout may be too low.  Can't hurt to test
it
>>with a larger value.
>>
>>At least for troubleshooting, try it with STOPONERROR = "No".  Then
test
>>the values CFFTP.Succeeded, CFFTP.ErrorCode, and CFFTP.ErrorText to
see
>>if you can get more detail about the error that's occurring.  You may
>>want to keep this change for your production code as well, and handle
>>error situations in your code.  It's a pain, but can make for a more
>>robust application.
>>
>>Jim
>>
>>
>>-----Original Message-----
>>From: Matt Lewis <[EMAIL PROTECTED]>
>>To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
>>Date: Saturday, August 19, 2000 9:54 PM
>>Subject: Help with CFFTP
>>
>>
>> >When I try using CFFTP to initially connect to an FTP Server but the
>>userid
>> >or password is invalid, all I'm getting is a timeout on the CF page
>> >and no error returned via CFFTP.
>> >
>> >Here's the code I'm using to call CFFTP to attempt the login:
>> >
>> > <CFFTP ACTION="open"
>> > USERNAME="#FORM.FtpUID#"
>> > CONNECTION="FtpConn"
>> > PASSWORD="#FORM.FtpPWD#"
>> > SERVER="#FORM.FtpIP#"
>> > TIMEOUT="10"
>> > STOPONERROR="Yes">
>> >
>> >Any pointers or ideas from folks on things to try?  I've already
tried
>> >wrapping the CFFTP call in a CFTRY/CFCATCH, but to no avail.
>> >
>> >Thanks.

------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/[email protected]/
To Unsubscribe visit 
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a 
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.

Reply via email to