It is currently Mon May 21, 2012 1:05 pm

All times are UTC + 2 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: http request problem
PostPosted: Tue Nov 25, 2008 3:07 pm 
Offline

Joined: Sat Feb 09, 2008 1:04 pm
Posts: 8
Hi All,

I have one requirement that, i am displaying results getting from various sites by sending request to their servers using http_client::get method.But it is taking much longer time to get back the response.
I am using for loop to send the requests to all the servers(approx 40).So it is taking around 10 secs to complete all the requests.

Please can you suggest me is there any way to send all the requests in a single attempt and get back the response in the same order.

Is php Supports multithreading?.If so, how can we solve this problem using multithreading.

I tried in many ways and didn't found any solution for my problem.Please help me to get out from this .
Reply With Quote


Top
 Profile  
 
 Post subject:
PostPosted: Wed Dec 17, 2008 5:20 pm 
Offline

Joined: Sun May 02, 2004 11:34 pm
Posts: 6535
Location: toronto, canada
No, php does not support multi-threading. What I would do is create a cron job that runs in the background every so many minutes and updates a local resource (db/page/filesystem etc) and only show the users that data. Then they are isolated from having to wait the for the 10 or so seconds for the data to return and your data is only a few minutes old, if that is acceptable

_________________
Lostboy

Cat, the other other white meat

Please read Posting Etiquette before posting

You can always try Google


Top
 Profile  
 
 Post subject: Re: http request problem
PostPosted: Wed Jun 08, 2011 8:02 am 
Offline

Joined: Wed Jun 08, 2011 7:54 am
Posts: 1
I'm not completely sure if this is the right spot to post this issue but I don't want to... well, anyway...

Here's a weird problem that I ran into. I have two freshly installed versions of Drupal (locally -> xampp1.6.8).
I have D6.8 and I just installed D6.9. The problem is that I get the following error only in D6.9 (in../?q=admin/reports/status):

HTTP request status Fails
Your system or network configuration does not allow Drupal to access web pages, resulting in reduced functionality. This could be due to your webserver configuration or PHP settings, and should be resolved in order to download information about available updates, fetch aggregator feeds, sign in via OpenID, or use other network-dependent services.

The bizarre thing is that I can't recreate the same error in D6.8 not matter how hard I try.
Both versions are fresh installs with OpenID, Aggregator disabled.
Therefore I'm wondering if anyone has an idea why that would be happening.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC + 2 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to: