Skip to content

Commit

Permalink
Increase read buffer (#2004)
Browse files Browse the repository at this point in the history
* Increase read buffer

* Add changelog
  • Loading branch information
romasku authored Feb 19, 2021
1 parent 91f40ba commit a803666
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.D/2004.bugfix
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fixed parsing of huge job payloads.
2 changes: 2 additions & 0 deletions neuro-sdk/src/neuro_sdk/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,8 @@ async def request(
data=data,
timeout=timeout,
trace_request_ctx=trace_request_ctx,
# Use 4mb buffer as sometimes single job response can be huge.
read_bufsize=2 ** 22,
) as resp:
if 400 <= resp.status:
err_text = await resp.text()
Expand Down

0 comments on commit a803666

Please sign in to comment.