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 = 104446
interpreted = N
texte = > > 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.> > It's very possible you're trying to open too many sockets. > You should probably try to code defensively, and first > check the incoming data before trying to write the data > to your database.I think it is impossible that I was trying to open too many sockets ...My code was opening one connection at a time, then sending the request, then receiving the request, then closing the connection -- all before the next connection was opened. How could this possibly try to open too many sockets?I observed the sequential character of the connections in my network monitor. But even though the data was being requested and received one connection at a time, the replace context was NOT writing the received data to the db like it should have been.Sincerely,Kenneth Gromewww.KenGrome.com> > Best,> Christer> > ---------------------------------------------------------> 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=topics&category=288>
Associated Messages, from the most recent to the oldest:
> > 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.> > It's very possible you're trying to open too many sockets. > You should probably try to code defensively, and first > check the incoming data before trying to write the data > to your database.I think it is impossible that I was trying to open too many sockets ...My code was opening one connection at a time, then sending the request, then receiving the request, then closing the connection -- all before the next connection was opened. How could this possibly try to open too many sockets?I observed the sequential character of the connections in my network monitor. But even though the data was being requested and received one connection at a time, the replace context was NOT writing the received data to the db like it should have been.Sincerely,Kenneth Gromewww.KenGrome.com> > Best,> Christer> > ---------------------------------------------------------> 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=topics&category=288>
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:
OT - Need A Good Address Parser (2000)
[ShowCart] and GET vs. POST (1997)
Re2: Calculating multiple shipping... (1997)
Looking for 5 to 12 shops with 3 URLs & statements (1997)
California Tax Rates (1998)
WebCatalog for Mac 2.0.1 Released (1997)
Null Characters (2005)
Where's Cart Created ? (1997)
Permissions (2000)
Editing only the price field in the database (1998)
Secure Server basic question... (1997)
[HIDEIF] inside [FOUNDITEM] (1997)
WebCat2b13MacPlugIn - [include] doesn't allow creator (1997)
Emailer (WebCat2) (1997)
Calendar using WebCatalog? (1997)
Firewalls - What's Good? (1999)
[SetHeader] docs? (1997)
[OT] Mac OSX and SSH Telnet (2000)
Trouble with formula.db (1997)
splitting up items in a cart (1999)