Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gevent
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gevent
Commits
9c1e2278
Commit
9c1e2278
authored
Oct 21, 2012
by
Denis Bilenko
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test__socket.py: read out all bytes that we send
this fixes failure in test__ssl.py on Windows
parent
3834eac2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
greentest/test__socket.py
greentest/test__socket.py
+3
-2
No files found.
greentest/test__socket.py
View file @
9c1e2278
...
...
@@ -85,10 +85,11 @@ class TestTCP(greentest.TestCase):
def
test_fullduplex
(
self
):
N
=
100000
def
server
():
(
client
,
addr
)
=
self
.
listener
.
accept
()
# start reading, then, while reading, start writing. the reader should not hang forever
N
=
100000
def
sendall
():
client
.
sendall
(
't'
*
N
)
...
...
@@ -100,7 +101,7 @@ class TestTCP(greentest.TestCase):
server_thread
=
Thread
(
target
=
server
)
client
=
self
.
create_connection
()
client_reader
=
Thread
(
target
=
client
.
makefile
().
read
,
args
=
(
5000
,
))
client_reader
=
Thread
(
target
=
client
.
makefile
().
read
,
args
=
(
N
,
))
time
.
sleep
(
0.1
)
client
.
send
(
'hello world'
)
time
.
sleep
(
0.1
)
...
...
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