Score:0

The $body_bytes_sent variable should be equal to Content-Length?

cn flag

Suppose the server response to a request always has a the Content-Length header and is not split into chunks.

Then $body_bytes_sent will be equal to Content-Length header. But what if the user couldn't read the entire request body? Can I log the number of bytes that nginx was supposed to send and how many bytes reached the client?

Score:0
cn flag

To get Content-length, you can use the variable $sent_http_content_length.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.