Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re^3: Thread::Queue and WWW::Curl

by BrowserUk (Pope)
on Sep 24, 2012 at 15:04 UTC ( #995406=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Thread::Queue and WWW::Curl
in thread Thread::Queue and WWW::Curl

You still haven't said what fails? Or how you know something is failing?


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

RIP Neil Armstrong


Comment on Re^3: Thread::Queue and WWW::Curl
Re^4: Thread::Queue and WWW::Curl
by Anonymous Monk on Sep 24, 2012 at 15:12 UTC

    When I run via threads, the following line does not output to my terminal:

    print "\nresponse was $response";
    , nor does the print statement after it output; furthermore I don't see the user deleted on the remote server when running via threads (however I do when running that code without threading).

      Apologies, I omitted two use statements in the above hitFbNew subroutine, amended as follows:

      sub hitFbNew { my ($method, $endpoint, $form) = (shift, shift, shift); use WWW::Curl::Easy; use WWW::Curl::Form; my $curl = WWW::Curl::Easy->new; my $curlf = WWW::Curl::Form->new; ...

      Looks like a clear-cut case of either WWW::Curl or libcurl not being thread-safe.


      With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.

      RIP Neil Armstrong

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://995406]
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-09-22 11:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (189 votes), past polls