Typical size of a buffer. In fact, IncompleteRead is an exception in the python native library httplib.
It is normal for the HTTP channel to return 0 bytes, or to get stuck after returning a certain number of bytes. If the reliability of the returned data is important, be careful to set reasonable timeouts and catch relevant errors. If necessary, you can even consider manually validating the Content-Length field of the HTTP header data.
It may be caused by incomplete chunked encoding.
Please see here for details: http://blog.csdn.net/wangzuxi/article/details/40377467
Typical size of a buffer. In fact,
IncompleteRead
is an exception in the python native library httplib.It is normal for the HTTP channel to return 0 bytes, or to get stuck after returning a certain number of bytes. If the reliability of the returned data is important, be careful to set reasonable timeouts and catch relevant errors. If necessary, you can even consider manually validating the Content-Length field of the HTTP header data.