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

[REBOL] Re: ftp dowlnoad of large file and read-io ....

From: m:koopmans2:chello:nl at: 12-Sep-2001 14:07

Buffer is declared as a string of 20000. read-io does an append on your buffer, but as it is low-level (?) it does not dynamically enlarge your buffer, so at 20.000 + a little bit it sees that your buffer is full and stops reading. Try it with smaller sizes, you'll see the same. Buffer is a buffer after all, so it is what you want for high performance things. Note that without clearing buffer you are resending things you have read earlier (unless write-io is smart about this). But... you got it right now HTH, Maarten