You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What steps will reproduce the problem?
1. attempt to cat a 0-byte file
2.
3.
What is the expected output? What do you see instead?
When cat'ing a 0-byte file, I am expecting the cat to return immediately with
nothing displayed on the terminal. Instead, the cat appears to hang until some
timeout is reached.
What version of the product are you using? On what operating system?
pywebdav 0.9.8 with python 2.7.2 on mac os x mountain lion
Please provide any additional information below.
A workaround is to disable chunked responses (e.g. with '-T'), thus I think the
chunked response code does not handle 0-byte files properly. I think that the
chunked response code sends a poorly formatted chunk to the client that causes
the client to think that more data is coming. I worked around this by adding a
"not DATA" condition to the "if" in send_body_chunks_if_http11() (basically,
avoid send_body_chunks() if DATA is empty).
Original issue reported on code.google.com by [email protected] on 29 Jan 2013 at 5:20
The text was updated successfully, but these errors were encountered:
Original issue reported on code.google.com by
[email protected]
on 29 Jan 2013 at 5:20The text was updated successfully, but these errors were encountered: