Mailing List Archive: 49091 messages
  • Home
  • Script library
  • AltME Archive
  • Mailing list
  • Articles Index
  • Site search
 

[REBOL] Re: FTP woes

From: nitsch-lists:netcologne at: 22-Oct-2003 15:19

Hi Bo, Am Mittwoch, 22. Oktober 2003 11:04 schrieb Bohdan or Rosemary Lechnowsky:
> Hello! > > I am trying to write a large number of large files to an FTP server using > Rebol. The first dozen or two will go fine, but after that I get the > following error when trying to open the FTP port: > > make object! [ > code: 501 > type: 'access > id: 'not-open > arg1: "Port^@" > arg2: "" > arg3: none > near: [open/binary/new/write/direct dstfile] > where: 'get-cur-dir > ] > > dstfile looks something like this: > > ftp://user:[pass--ftp--host--net]/test/sitebuilder.r.old > > If the file does not already exist, open/new should create a new file. The > odd thing here is that it works for the first dozen or two. > > I also tried running the same script on my home network to another computer > running an FTP server, but got the same results, although even quicker. > > I've tried setting system/schemes/ftp/passive to true, false and none with > no luck. > > Has anyone else seen this problem? If so, do you know of a solution?
Not seen the problem. but a thought: there is system/schemes/ftp/cache-size . which is the number of parallel connections AFAIK. rebol caches open ftp-connections for speed. if one ftp-action has a confusing result, the next action handles the rest of the reply as next reply. so if you clear the cache (looking for /cache-size in the source) maybe that helps. Another thought: ftp-servers may have a traffic-limit per session? you can only upload so much per login? in which case cache-clearing -> connection-closing might help too. but only guessing, hope the experts jump in :)
> Thanks! > > -Bo
-Volker