Closed vhdirk closed 1 year ago
@vhdirk @bugadani I added a test for this and a missing read of the final termination \r\n when an empty chunk is detected.
Good find and I think the added check is fine, but I think the underlying bug is https://github.com/drogue-iot/embedded-tls/pull/130
@vhdirk Sorry for polluting the PR with my commits. I though I was adding tests showing your issue, but it was actually finding a different issue. A read with an empty buffer is well defined and should simply return Ok(0)
. The underlying issue to the problem that you see is, as @bugadani pointed out, in embedded-tls
. The issue is fixed over there, and the fix in reqwless
that I found in my commits to this PR are now over in #58 .
read
would hang ifmax_len
is zero