Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
satella
Manage
Activity
Members
Labels
Plan
Issues
1
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
public
satella
Commits
98975bbc
Commit
98975bbc
authored
12 years ago
by
Piotr Maślanka
Browse files
Options
Downloads
Patches
Plain Diff
Small behaviour changes in select close
parent
e3b0c45b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
channels/base.py
+3
-0
3 additions, 0 deletions
channels/base.py
channels/sockets/sockets.py
+1
-1
1 addition, 1 deletion
channels/sockets/sockets.py
with
4 additions
and
1 deletion
channels/base.py
+
3
−
0
View file @
98975bbc
...
...
@@ -130,6 +130,9 @@ class HandlingLayer(object):
"""
Handling layer is forcing the channel to be unregistered, as because
it has become closed or failed. This is called on already closed channel.
By the time this is called channel has been already removed from the
select layer.
@param channel: channel that has failed
@type channel: L{Channel}
"""
This diff is collapsed.
Click to expand it.
channels/sockets/sockets.py
+
1
−
1
View file @
98975bbc
...
...
@@ -303,9 +303,9 @@ class SelectHandlingLayer(HandlingLayer):
"""
Channel unregister + channel close
"""
self
.
unregister_channel
(
channel
)
channel
.
on_closed
()
# this should close the channel
self
.
on_closed
(
channel
)
self
.
unregister_channel
(
channel
)
def
select
(
self
,
timeout
=
5
):
self
.
on_iteration
()
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment