Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: Mysql handle not in asynchronous mode

by punkish (Priest)
on Jul 17, 2011 at 01:02 UTC ( #914907=note: print w/ replies, xml ) Need Help??


in reply to Mysql handle not in asynchronous mode

Strange... a simple script like so works like a champ... no async nonsense, no errors. All 1000 requests are effortlessly returned by the same set up.

use LWP::UserAgent; my $BBOX = "-96.09299316406248+38.96034339396338%2C+-83.39279785156248 ++38.96034339396338%2C+-83.39279785156248+44.33256692562997%2C+-96.092 +99316406248+44.33256692562997%2C+-96.09299316406248+38.96034339396338 +"; for (1 .. 1000) { open my $fh, ">>", 'foo.txt'; my $ua = LWP::UserAgent->new; $ua->agent("MyApp/0.1 "); my $req = HTTP::Request->new(GET => "http://localhost:5001/points. +json?callback=foo&BBOX=$BBOX"); my $res = $ua->request($req); # Check the outcome of the response if ($res->is_success) { say $fh $res->content; } else { say $fh $res->status_line; } close $fh; }

So, it seems that both MySQL and Starman are very capable of handling this. THe only element missing here is Dancer, and the browser. Thoughts anyone?



when small people start casting long shadows, it is time to go to bed


Comment on Re: Mysql handle not in asynchronous mode
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://914907]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (7)
As of 2014-11-28 19:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My preferred Perl binaries come from:














    Results (200 votes), past polls