Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ZMQ heartbeat channel: catch EINTR exceptions and continue. #4118

Merged
merged 1 commit into from Aug 27, 2013

Conversation

pankajp
Copy link
Contributor

@pankajp pankajp commented Aug 27, 2013

The zmq heartbeat channel exits when it encounters an
"Interrupted system call", thereby causing the qtconsole to
report that it is not responding, despite the console working
perfectly fine. Observed in a large Qt application embedding
the ipython qtconsole in KDE desktop.
Fixes #2310
Inspired by #501

try:
zmq.device(zmq.FORWARDER, self.socket, self.socket)
except zmq.ZMQError as e:
import errno
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move import to module level

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks, fixed in a new commit.

The zmq heartbeat channel exits when it encounters an
"Interrupted system call", thereby causing the qtconsole to
report that it is not responding, despite the console working
perfectly fine. Observed in a large Qt application embedding
the ipython qtconsole.
Fixes ipython#2310
minrk added a commit that referenced this pull request Aug 27, 2013
ZMQ heartbeat channel: catch EINTR exceptions and continue.

closes #2310
@minrk minrk merged commit 8da7e62 into ipython:master Aug 27, 2013
minrk added a commit that referenced this pull request Aug 27, 2013
…continue.

The zmq heartbeat channel exits when it encounters an
"Interrupted system call", thereby causing the qtconsole to
report that it is not responding, despite the console working
perfectly fine. Observed in a large Qt application embedding
the ipython qtconsole in KDE desktop.
Fixes #2310
Inspired by #501
@pankajp pankajp deleted the heartbeart-channel-handle-EINTR branch August 28, 2013 07:10
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
…e-EINTR

ZMQ heartbeat channel: catch EINTR exceptions and continue.

closes ipython#2310
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"ZMQError: Interrupted system call" from RichIPythonWidget
2 participants