Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
tornado AsyncHTTPClient only can process one request on the same time
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jet Vster  
View profile  
 More options Oct 8 2012, 3:34 am
From: Jet Vster <jetvs...@gmail.com>
Date: Mon, 8 Oct 2012 00:34:48 -0700 (PDT)
Local: Mon, Oct 8 2012 3:34 am
Subject: tornado AsyncHTTPClient only can process one request on the same time

import logging  

when  url is wrong,it alows throw the exception 'timeout'  

then  i send Multi requests in the same time,   tornado will process
request one by one.

How to process multi AsyncHTTPClient  on the same time?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Darnell  
View profile  
 More options Oct 8 2012, 1:09 pm
From: Ben Darnell <b...@bendarnell.com>
Date: Mon, 8 Oct 2012 10:08:59 -0700
Local: Mon, Oct 8 2012 1:08 pm
Subject: Re: [tornado] tornado AsyncHTTPClient only can process one request on the same time
In general AsyncHTTPClient should be able to handle multiple requests
concurrently, but there is one part of it that does block the IOLoop:
DNS resolution.  If your DNS calls are slow then you will see problems
like what you're describing.  The best way to deal with slow DNS in
tornado 2.4 is to compile libcurl with c-ares support (which is not
the default, so you'll probably have to build it yourself instead of
getting it from your distribution's package manager) and use
CurlAsyncHTTPClient.  In 3.0 you'll be able to use a thread pool with
SimpleAsyncHTTPClient.

-Ben


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jetvster  
View profile  
 More options Oct 9 2012, 6:08 am
From: Jetvster <jetvs...@gmail.com>
Date: Tue, 9 Oct 2012 03:08:35 -0700 (PDT)
Local: Tues, Oct 9 2012 6:08 am
Subject: Re: [tornado] tornado AsyncHTTPClient only can process one request on the same time

hi Ben

thanks
 i replace the domain with ip '10.167.8.3','10.167.8.3' is down.
it's block too.  and use SimpleAsyncHTTPClient  also have same problem.

the code is the same with tornado document,the document say it's
non-blocking

but  in my code  it's block all other request when one request is processing

any problem in my code?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »