Re: [WebDNA] Some code inside a large loops fail ... but why?

This WebDNA talk-list message is from

2010


It keeps the original formatting.
numero = 104441
interpreted = N
texte = > What about the [tcpconnect] outside the loop, and the [tcpsend] > inside? instead of opening 10,000 connections, it would just open one? I tried that too but I got no response at all using that approach. I wish it had worked because it would have been a more efficient way to collect the required data, assuming the server didn't terminate the connection early because of so many similar requests. The only reason I can think why this didn't work is that one of the tcpsends did not get a response so all the others after that were not sent ... and perhaps this prevented the tcpconnect from terminating ... ? Unfortunately this does not explain the lack of writing to the database for the tcpsends that actually got a response, because the replace context was inside the loop along with the tcpsend code. So I'm thinking that there may be a memory leak or some other type of bug in tcpconnect or tcpsend or loop that caused this particular problem. I really don't understand why webdna failed to write to the db when I set the number of iterations to 10,000 and I cannot explain why the network activity continued (which means data was being received) but the database writing failed. This is the the mystery that bothers me more than anything else because it suggests a bigger underlying problem that may be unusually difficult to diagnose. > The timeout is definitely a good idea and will be available next version. Thanks for acknowledging that a tcpconnect timeout is a good suggestion. The more we have to integrate our websites with other sites the more we have to use tcpconnect, and the more this problem will crop up in the future without a timeout. :) Sincerely, Kenneth Grome www.KenGrome.com Associated Messages, from the most recent to the oldest:

    
  1. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  2. Re: [WebDNA] Some code inside a large loops fail ... but why? (christophe.billiottet@webdna.us 2010)
  3. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  4. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  5. Re: [WebDNA] Some code inside a large loops fail ... but why? (christophe.billiottet@webdna.us 2010)
  6. Re: [WebDNA] Some code inside a large loops fail ... but why? (Christer Olsson 2010)
  7. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  8. Re: [WebDNA] Some code inside a large loops fail ... but why? (christophe.billiottet@webdna.us 2010)
  9. Re: [WebDNA] Some code inside a large loops fail ... but why? ("Psi Prime Inc, Matthew A Perosi " 2010)
  10. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  11. Re: [WebDNA] Some code inside a large loops fail ... but why? (Brian Fries 2010)
  12. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  13. Re: [WebDNA] Some code inside a large loops fail ... but why? (Govinda 2010)
  14. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  15. Re: [WebDNA] Some code inside a large loops fail ... but why? (Stuart Tremain 2010)
  16. Re: [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  17. Re: [WebDNA] Some code inside a large loops fail ... but why? (Stuart Tremain 2010)
  18. [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
  19. [WebDNA] Some code inside a large loops fail ... but why? (Kenneth Grome 2010)
> What about the [tcpconnect] outside the loop, and the [tcpsend] > inside? instead of opening 10,000 connections, it would just open one? I tried that too but I got no response at all using that approach. I wish it had worked because it would have been a more efficient way to collect the required data, assuming the server didn't terminate the connection early because of so many similar requests. The only reason I can think why this didn't work is that one of the tcpsends did not get a response so all the others after that were not sent ... and perhaps this prevented the tcpconnect from terminating ... ? Unfortunately this does not explain the lack of writing to the database for the tcpsends that actually got a response, because the replace context was inside the loop along with the tcpsend code. So I'm thinking that there may be a memory leak or some other type of bug in tcpconnect or tcpsend or loop that caused this particular problem. I really don't understand why webdna failed to write to the db when I set the number of iterations to 10,000 and I cannot explain why the network activity continued (which means data was being received) but the database writing failed. This is the the mystery that bothers me more than anything else because it suggests a bigger underlying problem that may be unusually difficult to diagnose. > The timeout is definitely a good idea and will be available next version. Thanks for acknowledging that a tcpconnect timeout is a good suggestion. The more we have to integrate our websites with other sites the more we have to use tcpconnect, and the more this problem will crop up in the future without a timeout. :) Sincerely, Kenneth Grome www.KenGrome.com Kenneth Grome

DOWNLOAD WEBDNA NOW!

Top Articles:

Talk List

The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...

Related Readings:

Admin Edit prob. (1997) Re:Dashes and dots in credit card (1998) Separate server for jpg/gif files (1998) Plugin or CGI or both (1997) many-to-one problem (1998) ISAPI WC6a and Windows 2003 Web Edition (2006) updating with ProductEditor (1998) Unix DB Permission Error (2002) Hard Questions ? (1997) WebCat2b13 Command Reference Doc error (1997) emailer w/F2 (1997) Help!!!! (1997) [REPLACE] inside [FOUNDITEMS] (1998) What about this [delete] situation? (1998) More Applescript (1997) Nitro plugin? (1998) Serving images from databases (1998) format_to_days on NT (1997) no global [username] or [password] displayed ... (1997) [WriteFile] problems (1997)