I wouldn't know where an appropriate place to file a bug would be.  Looking
at the CPython code for http.client, `.read()` should be fully consuming
all of the chunks.

https://github.com/python/cpython/blob/3.10/Lib/http/client.py#L577

As such, I doubt we would do anything in ansible-core to deal with this.

There is no way for the client to instruct the server to not send a chunked
response.  A chunked response is used when the Content-Length isn't known
at the time the response is sent back to the client.

On Fri, Mar 11, 2022 at 10:53 AM jean-christophe manciot <
[email protected]> wrote:

> Thanks.
> But I understand from your answer that really chunked answers should not
> happen under normal circumstances.
> Since "Python 3 should be attempting to read all chunks", I tried to set
> the timeout to a high value (3600) to eliminate that potential explanation
> for the chunked answer.
> However, it is still happening.
> Should I report this a bug or can you suggest anything else?
>
> Also, by default (if no other headers are set), is it possible to receive
> something else than 'transfer_encoding: chunked' from the server for
> body_format: 'json' or body_format: 'raw'?
>
>> --
> 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/c9fb96b2-124e-4d88-a65f-3e2f5dfdd2e4n%40googlegroups.com
> <https://groups.google.com/d/msgid/ansible-project/c9fb96b2-124e-4d88-a65f-3e2f5dfdd2e4n%40googlegroups.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-JQbkQgT%2BxH1Oaz0HX08QNgMSZuEvzfinY%3D2mv7GcqHA%40mail.gmail.com.

Reply via email to