Skip to content

Commit

Permalink
fix #6312 set AsyncHTTPClient max_buffer_size (#6316)
Browse files Browse the repository at this point in the history
  • Loading branch information
moellep authored Sep 16, 2023
1 parent 8434293 commit e390f4e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sirepo/job_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,9 @@ async def _wrap_future(value):

a = _args(kwargs)
with self._reply_maybe_file(a.content) as d:
r = tornado.httpclient.AsyncHTTPClient().fetch(
r = tornado.httpclient.AsyncHTTPClient(
max_buffer_size=sirepo.job.cfg().max_message_bytes,
).fetch(
tornado.httpclient.HTTPRequest(
body=pkjson.dump_bytes(a.content),
connect_timeout=60,
Expand Down

0 comments on commit e390f4e

Please sign in to comment.