문제

This is rather a question to satisfy curiosity.

How does standard HTTP 1.1 stacks compute chunk-sizes on a HTTP response socket? Is it timeout based, max size based or depends on when the application does a flush on the socket, or an algorithm based on all of them? Is there any open HTTP 1.1 stack implementation guideline available on this?

Thanks in advance.

도움이 되었습니까?

해결책

There is no "standard" HTTP/1.1 stack. Often you have to do it yourself, e.g. make sure a transfer-encoding: chunked header is send, then send all the chunks prefixed with length and then the last empty chunk.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top