Skip to content

Commit

Permalink
fix: [core] the default buffer size in Tornado HTTP server is not enough
Browse files Browse the repository at this point in the history
for large MISP event.

Fix #662
  • Loading branch information
adulau committed May 9, 2024
1 parent 55d7fc9 commit e4d9317
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion misp_modules/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ def main():

application = tornado.web.Application(service)
try:
application.listen(args.port, address=args.listen)
server = tornado.httpserver.HTTPServer(application, max_buffer_size=1073741824) # buffer size increase when large MISP event are submitted - GH issue 662
server.listen(args.port, args.listen)
except Exception as e:
if e.errno == 98:
pids = psutil.pids()
Expand Down

0 comments on commit e4d9317

Please sign in to comment.