Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
W
wspy
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Taddeüs Kroes
wspy
Commits
46c3b42c
Commit
46c3b42c
authored
Aug 25, 2013
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
7c99e4fe
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
4 deletions
+2
-4
deflate_frame.py
deflate_frame.py
+2
-4
No files found.
deflate_frame.py
View file @
46c3b42c
import
zlib
from
frame
import
ControlFrame
from
errors
import
SocketClosed
from
extension
import
Extension
from
frame
import
ControlFrame
class
DeflateFrame
(
Extension
):
...
...
@@ -21,7 +20,6 @@ class DeflateFrame(Extension):
name
=
'deflate-frame'
rsv1
=
True
# FIXME: is 32768 (below) correct?
defaults
=
{
'max_window_bits'
:
15
,
'no_context_takeover'
:
False
}
def
__init__
(
self
,
defaults
=
{},
request
=
{}):
...
...
@@ -60,7 +58,7 @@ class DeflateFrame(Extension):
def
recv
(
self
,
frame
):
if
frame
.
rsv1
:
if
isinstance
(
frame
,
ControlFrame
):
raise
SocketClosed
(
'received compressed control frame'
)
raise
ValueError
(
'received compressed control frame'
)
frame
.
rsv1
=
False
frame
.
payload
=
self
.
inflate
(
frame
.
payload
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment