libUrlFtpUploadFile time out issues

Dave Cragg dcragg at lacscentre.co.uk
Sat Dec 7 04:36:01 EST 2002


At 6:56 pm -1000 6/12/02, Sannyasin Sivakatirswami wrote:
>Dave Cragg (or anyone...)
>
>Working  using the new
>
>libUrlFtpUploadFile tSourcePath, tUrl, "loadDone"
>
>for uploads to an FTP server... it works fine but
>
>1) Timeout issues:
>
>if I get  the following socket time out (now sure if libURL is
>generating this or the ftp server??) ... then I have to try again...
>=======
>220 Welcome to mahiai.aloha.net's FTP server
>331 Password required for gurudeva.
>230 User gurudeva logged in.  Access restrictions apply.
>257 "/" is current directory.
>200 Type set to I.
>socket timeout 64.75.176.66:21|6926
>CLOSED 64.75.176.66:21|6926
>
>===========
>
>If I can get through this far:
>
>200 Type set to I.
>227 Entering Passive Mode (64,75,176,66,94,98)
>150 Opening BINARY mode data connection for
>/export/vhost/org/g/gurudeva/www/public_html/01-Bodhinatha-12-06.JPG.
>CLOSED 64.75.176.66:24162|6924
>226 Transfer complete.
>
>then, (obviously) it works and then I can do successive uploads on
>that same connection without logging in again.
>
>so, how to handle that time out business...??

Try setting the socketTimeoutInterval to a higher value. (e.g. 20000)

However, if the timeout is occurring before you think it should (i.e. 
within the socketTimeoutInterval which is set to 10 seconds by 
default) let me know.

Cheers
Dave



More information about the use-livecode mailing list