diff options
author | Valentin Bartenev <vbart@nginx.com> | 2018-09-20 16:04:49 +0300 |
---|---|---|
committer | Valentin Bartenev <vbart@nginx.com> | 2018-09-20 16:04:49 +0300 |
commit | 510c2e15c5b55a48f15f0ba680c5e82a2db5456f (patch) | |
tree | e1e5abb930a7e83426bc0b8dff951a0f9769d6c7 /src/nxt_thread.h | |
parent | 9f29ac9f3e85b34317ab68ae297dabc6c6ffa6ae (diff) | |
download | unit-510c2e15c5b55a48f15f0ba680c5e82a2db5456f.tar.gz unit-510c2e15c5b55a48f15f0ba680c5e82a2db5456f.tar.bz2 |
Python: adjusted input.read(size) argument value interpretation.
Previously, passing 0 resulted in reading the whole body and all negative
values raised an exception.
Now the behaviour is in consistentance with io.RawIOBase.read() interface,
and passing 0 returns empty (byte) string, while -1 results in reading the
whole body.
Diffstat (limited to 'src/nxt_thread.h')
0 files changed, 0 insertions, 0 deletions