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 = 104437
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? The timeout is definitely a good idea and will be available next = version. - chris On Jan 12, 2010, at 23:09, Kenneth Grome wrote: > When I run a loop that iterates 10 times it seems to work fine. = Everything inside the loop is processed correctly, and the data gets = written to the db as expected. But when I iterate 10000 times the = replace context fails to record the data to the db: >=20 > [loop start=3D1&end=3D10000] >=20 > [text]rawData=3D[removehtml][tcpconnect = host=3Dwww.website.com&port=3D80][tcpsend skipheader=3DT]GET = /folder/file.asp?record=3D[index] = HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/tcpconnect][/removehtml][/t= ext] >=20 > [replace = append=3DT&db=3Ddatabase.db&eqsomefielddatarq=3D[index]]somefield=3D[index= ]&html=3D[url][rawData][/url][/replace] >=20 > [/loop] >=20 > Network activity continues while the large loop is running, and it = looks just like the network activity that exists when the small loop is = run, so I believe the tcpconnect is functioning properly. But for some = reason no data gets written to the db in the large loop. >=20 > Any idea why the replace fails when I set the number of iterations so = high? >=20 > ----------------------------- >=20 > Another question which may lead to new insights here: >=20 > When the tcpconnect fails to get a response, what happens? Does it = prevent the rest of the loop from executing? If so, is there some kind = of timeout built into tcpconnect that we can use to force the loop to = continue after such a tcpconnect freeze/failure? >=20 > Sincerely, > Kenneth Grome > www.KenGrome.com >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: = http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 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? The timeout is definitely a good idea and will be available next = version. - chris On Jan 12, 2010, at 23:09, Kenneth Grome wrote: > When I run a loop that iterates 10 times it seems to work fine. = Everything inside the loop is processed correctly, and the data gets = written to the db as expected. But when I iterate 10000 times the = replace context fails to record the data to the db: >=20 > [loop start=3D1&end=3D10000] >=20 > [text]rawData=3D[removehtml][tcpconnect = host=3Dwww.website.com&port=3D80][tcpsend skipheader=3DT]GET = /folder/file.asp?record=3D[index] = HTTP/1.0[unurl]%0D%0A%0D%0A[/unurl][/tcpsend][/tcpconnect][/removehtml][/t= ext] >=20 > [replace = append=3DT&db=3Ddatabase.db&eqsomefielddatarq=3D[index]]somefield=3D[index= ]&html=3D[url][rawData][/url][/replace] >=20 > [/loop] >=20 > Network activity continues while the large loop is running, and it = looks just like the network activity that exists when the small loop is = run, so I believe the tcpconnect is functioning properly. But for some = reason no data gets written to the db in the large loop. >=20 > Any idea why the replace fails when I set the number of iterations so = high? >=20 > ----------------------------- >=20 > Another question which may lead to new insights here: >=20 > When the tcpconnect fails to get a response, what happens? Does it = prevent the rest of the loop from executing? If so, is there some kind = of timeout built into tcpconnect that we can use to force the loop to = continue after such a tcpconnect freeze/failure? >=20 > Sincerely, > Kenneth Grome > www.KenGrome.com >=20 >=20 >=20 >=20 >=20 >=20 > --------------------------------------------------------- > This message is sent to you because you are subscribed to > the mailing list . > To unsubscribe, E-mail to: > archives: http://mail.webdna.us/list/talk@webdna.us > old archives: http://dev.webdna.us/TalkListArchive/ > Bug Reporting: = http://forum.webdna.us/eucabb.html?page=3Dtopics&category=3D288 christophe.billiottet@webdna.us

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:

Making Thumbnail Graphics (1997) Tab Charactor (1997) stripping extra spaces from form fields (2000) [WebDNA] NOT serving WebDNA, just running it locally. (2012) Comments in db? (1997) [SearchString] problem with [search] context (1997) WebCatalog [FoundItems] Problem - LONG - (1997) Creating main- and sub-category search (1997) CMSBuilder (2004) SQL Changes in 3.0.7? (2000) still having shipCost.db Problem (1997) Problem during evaluation of WebCatalog (1998) Can you do this??? and other stuff (1997) Another bug to squash (WebCat2b13 Mac .acgi) (1997) Re:Version 2.0 and 1.6 simultaneous (1997) Not really WebCat (1997) searching multiple databases in single search (1997) totals (1997) Netscape v. IE (1997) WebCat2b13MacPlugin - nested [xxx] contexts (1997)