You don't know it. Should be small anyway since you're generally at the end of the request. Also 0 means anything in the socket buffer.

Other way would be skipping the rest of body waiting for the final chunk.