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
002264c0
Commit
002264c0
authored
Nov 07, 2012
by
Taddeüs Kroes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Code cleanup
parent
8ba1705c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
5 deletions
+3
-5
frame.py
frame.py
+3
-5
No files found.
frame.py
View file @
002264c0
...
...
@@ -139,19 +139,17 @@ def recvn(sock, n):
"""
Keep receiving data from `sock' until exactly `n' bytes have been read.
"""
left
=
n
data
=
''
while
le
ft
>
0
:
received
=
sock
.
recv
(
left
)
while
le
n
(
data
)
<
n
:
received
=
sock
.
recv
(
n
-
len
(
data
)
)
if
not
len
(
received
):
raise
SocketClosed
()
data
+=
received
left
-=
len
(
received
)
return
received
return
data
def
mask
(
key
,
original
):
...
...
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