1

Topic: Curl time limit

I do not know where to ask a question.
Such problem...
Is  request to page, process of obtaining of page occupies about 5-6 seconds
Tell, waiting process  pages it as sleep? Or the processor hangs and looks forward to hearing.
Problem such. On a hosting (j ** o.) this time to me consider in processor, and  crones launching  time at 2 o'clock, gives to me a day 1 mines of usage of the processor that over a limit.
It not correctly is considered statistican at them or is real  holds cpu. Since at me different requests in the course of operation will be in tens times more (

2

Re: Curl time limit

The wait loop of the answer from the server is how implemented is only in source codes curl to look. More exact answer hardly somewhere else find.
Hypothetically, there can be any variant of a pause of small duration (the order of a millisecond or less). However, in the same cycle it is necessary also time to supervise to generate a condition of termination of a cycle on excess of wait time of the answer from the server. So, in this place processor usage absolutely zero will not be exact.

3

Re: Curl time limit

I thought  hostings of already got rid... Take .
On a subject: time as processor should not be considered, but  it is not pleasant to a hoster that storage spend. Generally this moment is better at this hoster and to specify.

4

Re: Curl time limit

Hett wrote:

time as processor

Why it should not be considered? Process works, machine cycles devours, and the juniks-user from which name all this disgrace, quite defined is created. I do not see the reasons not to consider.

5

Re: Curl time limit

Keyword "processor". CPU does not spend the precious time for service of this process while it is in waiting. Though a question here still to : that so long  there expects? If one hundred-other and more requests not that and to be surprised is processed.

6

Re: Curl time limit

Re-read a topic;
And the page weighs much? Why it so is long loaded?

7

Re: Curl time limit

Hett wrote:

Re-read a topic;
And the page weighs much? Why it so is long loaded?

It is page with instagram with parameter? __ a=1 + ready
~50kb
There json an array dataful.
an array json_decode (1);
Further 2 parameters undertake and are added in basis.
The hoster of anything distinct did not answer, suggested to change a variant of start a crone, I made it, changed nothing.

wrote:

I thought  hostings of already got rid... Take .

At me is 3 vps but under other projects, and there I do not want to climb.
And not to take next vps the license on isp, most to solve everyone  a problem, adjustment, I thought "I will better overpay a little, but threw files in a folder and all works". I was not right (
All thanks, likely I will move better on vps

8

Re: Curl time limit

Why curl it is used, other variants did not try to consider? The same wget  quite supports.
Or pens . For example, opened a socket, wrote down in it request, and in hibernation of seconds on seven. Woke up - read the answer. 50 kilobyte is not enough, like, though,  what there the buffer at sockets.

9

Re: Curl time limit

vkle wrote:

Why curl it is used, other variants did not try to consider? The same wget  quite supports.
Or pens . For example, opened a socket, wrote down in it request, and in hibernation of seconds on seven. Woke up - read the answer. 50 kilobyte is not enough, like, though,  what there the buffer at sockets.

Yes I somehow not . All worked year, never problems was. And 5  not such big time, at me is crones on vps which for 1 cycle receive 3-4 pages, and solves  through  (~30) total seconds 40 precisely. So on the most simple vps the production schedule does not wave at all, and here at once restrictions, 502 errors,   on 5-10 seconds
And if in the first put with a hosting began with such nonsense, it is necessary to run. Before such at them never was and here again.

10

Re: Curl time limit

Zhenek;
At j ** o also  for search of resources is? Well, the pancake,  quits. Did not run while into the such.
However, it is their business, anything personal smile

11

Re: Curl time limit

vkle wrote:

Zhenek;
At j ** o also  for search of resources is? Well, the pancake,  quits. Did not run while into the such.
However, it is their business, anything personal smile

Yes (they on short (and sometimes long  20) disconnect. If loading is exceeded on a DB:mysql server has gone away
If on CPU, 502.
It can such  a method kill heavy request or a script.
Moved on vps reversely.