Skip to content
This repository has been archived by the owner on Feb 22, 2020. It is now read-only.

Commit

Permalink
fix(base): fix socket linger
Browse files Browse the repository at this point in the history
  • Loading branch information
hanxiao committed Oct 24, 2019
1 parent 12cd69c commit 388bd2f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions gnes/service/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ def build_socket(ctx: 'zmq.Context', host: str, port: int,
SocketType.PAIR_BIND: lambda: ctx.socket(zmq.PAIR),
SocketType.PAIR_CONNECT: lambda: ctx.socket(zmq.PAIR)
}[socket_type]()
sock.setsockopt(zmq.LINGER, 0)

if socket_type.is_bind:
if use_ipc:
Expand Down

0 comments on commit 388bd2f

Please sign in to comment.