Login
Log in using an SSO provider:
Fedora Account System
Red Hat Associate
Red Hat Customer
Login using a Red Hat Bugzilla account
Forgot Password
Create an Account
Red Hat Bugzilla – Attachment 1028385 Details for
Bug 1181005
receiver.fetch raises KeyError after network glitch
Home
New
Search
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh92 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
[?]
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Check to see if channel is associated with a session before using it
bz1181005.patch (text/plain), 1.17 KB, created by
Ernie
on 2015-05-21 19:50:09 UTC
(
hide
)
Description:
Check to see if channel is associated with a session before using it
Filename:
MIME Type:
Creator:
Ernie
Created:
2015-05-21 19:50:09 UTC
Size:
1.17 KB
patch
obsolete
>diff --git a/qpid/python/qpid/messaging/driver.py b/qpid/python/qpid/messaging/driver.py >index 7c30e5d..4f48568 100644 >--- a/qpid/python/qpid/messaging/driver.py >+++ b/qpid/python/qpid/messaging/driver.py >@@ -897,10 +897,13 @@ class Engine: > return self._sessions[op.channel] > > def do_session_detached(self, dtc): >- sst = self._sessions.pop(dtc.channel) >- ssn = sst.session >- del self._attachments[ssn] >- ssn.closed = True >+ if dtc.channel in self._sessions: >+ sst = self._sessions.pop(dtc.channel) >+ ssn = sst.session >+ del self._attachments[ssn] >+ ssn.closed = True >+ else: >+ self.close(ConnectError(text="Session detached after channel exception")) > > def do_session_detach(self, dtc): > sst = self.get_sst(dtc) >diff --git a/qpid/python/qpid/messaging/endpoints.py b/qpid/python/qpid/messaging/endpoints.py >index 2797677..26d0278 100644 >--- a/qpid/python/qpid/messaging/endpoints.py >+++ b/qpid/python/qpid/messaging/endpoints.py >@@ -788,6 +788,7 @@ class Session(Endpoint): > Close the session. > """ > if self.error: return >+ if self.closed: return > self.sync(timeout=timeout) > > for link in self.receivers + self.senders:
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1181005
:
1028385
|
1028876
|
1037366