No luck, output is coming immediately even I set to timeout: 120

On Tue, 21 Jul 2020, 01:53 Gajendra Gaikwad, <[email protected]>
wrote:

> Thank you Matt and Visser
> I will check and let you know.
>
>
> On Tue, 21 Jul 2020, 01:48 Matt Martz, <[email protected]> wrote:
>
>> Are you actually running into a problem?  Also, the `timeout` parameter
>> affects all blocking operations, including recv/read.
>>
>> The optional *timeout* parameter specifies a timeout in seconds for
>> blocking operations like the connection attempt (if not specified, the
>> global default timeout setting will be used). This only works for HTTP,
>> HTTPS and FTP connections.
>>
>> I created a toy webapp, that would sleep for a random period of time
>> between 60 and 120s. At the default 30s it would fail, I extended the
>> timeout to 120s, and it works as expected every time.
>>
>>
>> On Mon, Jul 20, 2020 at 3:04 PM Gajendra Gaikwad <
>> [email protected]> wrote:
>>
>>> request.
>>> *timeout*
>>> <https://docs.ansible.com/ansible/latest/modules/uri_module.html#parameter-timeout>
>>> integer
>>> *Default:*
>>> 30
>>> The socket level timeout in seconds
>>>
>>>
>>>  "Socket Timeouts. ... Socket timeouts can occur when attempting to
>>> connect to a remote server, or during communication, especially long-lived
>>> ones. They can be caused by any connectivity problem on the network, such
>>> as: A network partition preventing the two machines from communicating. The
>>> remote machine crashing."
>>>
>>>
>>> In my case connection is getting established.
>>>
>>> I would like to wait uri connection till load the page and then return
>>> the static and dynamic values
>>> "
>>>
>>> On Tue, 21 Jul 2020, 01:14 Dick Visser, <[email protected]> wrote:
>>>
>>>>
>>>> https://docs.ansible.com/ansible/latest/modules/uri_module.html#parameter-timeout
>>>>
>>>> On Mon, 20 Jul 2020 at 20:38, Gajendra Gaikwad
>>>> <[email protected]> wrote:
>>>> >
>>>> > Hello All,
>>>> > I would like to fetch some data using uri module, but little concern
>>>> is that uri module should wait for 30 second to complete to load the page
>>>> (page has same dynamic data which required 30 second to load (asp) )
>>>> >
>>>> >
>>>> > How do i meet this requirement.
>>>> >
>>>> > Thanks in Advance.
>>>> >
>>>> > Regards
>>>> > GG.
>>>> >
>>>> > --
>>>> > You received this message because you are subscribed to the Google
>>>> Groups "Ansible Project" group.
>>>> > To unsubscribe from this group and stop receiving emails from it,
>>>> send an email to [email protected].
>>>> > To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/ansible-project/6c8941af-5de6-4d3c-a543-4332e6d12d13o%40googlegroups.com
>>>> .
>>>>
>>>>
>>>>
>>>> --
>>>> Dick Visser
>>>> Trust & Identity Service Operations Manager
>>>> GÉANT
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "Ansible Project" group.
>>>> To unsubscribe from this group and stop receiving emails from it, send
>>>> an email to [email protected].
>>>> To view this discussion on the web visit
>>>> https://groups.google.com/d/msgid/ansible-project/CAL8fbwNaRAopzFYqYskSpnc4rnmjqt6RiLiniRp8aG7KX_ZMyA%40mail.gmail.com
>>>> .
>>>>
>>> --
>>> You received this message because you are subscribed to the Google
>>> Groups "Ansible Project" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to [email protected].
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/ansible-project/CAG_8SgNxvQCVJBMFxOZ22Yqjmc%2BzSWKQVO7VFVjuTJXmH7WZQQ%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/ansible-project/CAG_8SgNxvQCVJBMFxOZ22Yqjmc%2BzSWKQVO7VFVjuTJXmH7WZQQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
>>> .
>>>
>>
>>
>> --
>> Matt Martz
>> @sivel
>> sivel.net
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "Ansible Project" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/ansible-project/CAD8N0v_Sm8VHVnuziH7qCGgW13JC0PH1UKZ8hk8Q4oa_AUhQ1g%40mail.gmail.com
>> <https://groups.google.com/d/msgid/ansible-project/CAD8N0v_Sm8VHVnuziH7qCGgW13JC0PH1UKZ8hk8Q4oa_AUhQ1g%40mail.gmail.com?utm_medium=email&utm_source=footer>
>> .
>>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/CAG_8SgPjQr%3DtToQdMZDsj_%2BXQqBix9-kBsR-rYg%2BJyLSN4fqYg%40mail.gmail.com.

Reply via email to