fix: [core] the default buffer size in Tornado HTTP server is not enough

for large MISP event.

Fix #662
pull/664/head
Alexandre Dulaunoy 2024-05-09 17:15:27 +02:00
parent 55d7fc95dc
commit e4d93173a7
No known key found for this signature in database
GPG Key ID: 09E2CD4944E6CBCD
1 changed files with 2 additions and 1 deletions

View File

@ -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()