Skip to content

Commit

Permalink
Fix stdin zmq context
Browse files Browse the repository at this point in the history
  • Loading branch information
davidbrochart committed Mar 19, 2024
1 parent c1dce80 commit 09dbf86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ipykernel/kernelapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def init_sockets(self):
self.shell_port = self._bind_socket(self.shell_socket, self.shell_port)
self.log.debug("shell ROUTER Channel on port: %i" % self.shell_port)

self.stdin_socket = context.socket(zmq.ROUTER)
self.stdin_socket = zmq.Context(context).socket(zmq.ROUTER)#context.socket(zmq.ROUTER)
self.stdin_socket.linger = 1000
self.stdin_port = self._bind_socket(self.stdin_socket, self.stdin_port)
self.log.debug("stdin ROUTER Channel on port: %i" % self.stdin_port)
Expand Down

0 comments on commit 09dbf86

Please sign in to comment.