minidumpserver.py:Improve socket performance of minidumpserver.py

Signed-off-by: anjiahao <anjiahao@xiaomi.com>
This commit is contained in:
anjiahao 2024-08-06 17:19:21 +08:00 committed by Xiang Xiao
parent bb24fd9108
commit 65ef1f72c1
1 changed files with 1 additions and 1 deletions

View File

@ -820,7 +820,7 @@ def main(args):
# Reuse address so we don't have to wait for socket to be
# close before we can bind to the port again
gdbserver.setsockopt(socket.SOL_SOCKET, socket.SO_REUSEADDR, 1)
gdbserver.setsockopt(socket.IPPROTO_TCP, socket.TCP_NODELAY, 1)
try:
gdbserver.bind(("", args.port))