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
70c61625
Commit
70c61625
authored
Jun 03, 2015
by
Jason Madden
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Temporarily drop cython from the dep list and try develop for travis.
parent
72cda414
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
3 deletions
+5
-3
.travis.yml
.travis.yml
+1
-1
gevent/_socket2.py
gevent/_socket2.py
+3
-1
tox.ini
tox.ini
+1
-1
No files found.
.travis.yml
View file @
70c61625
...
@@ -14,6 +14,6 @@ install:
...
@@ -14,6 +14,6 @@ install:
-
travis_retry pip install --install-option='--no-cython-compile' cython
-
travis_retry pip install --install-option='--no-cython-compile' cython
script
:
script
:
# Try to use the site packages of cython we just installed
# Try to use the site packages of cython we just installed
-
tox --sitepackages
-
tox --sitepackages
--develop
notifications
:
notifications
:
email
:
false
email
:
false
gevent/_socket2.py
View file @
70c61625
...
@@ -296,10 +296,12 @@ class socket(object):
...
@@ -296,10 +296,12 @@ class socket(object):
timeleft
=
self
.
timeout
timeleft
=
self
.
timeout
end
=
time
.
time
()
+
timeleft
end
=
time
.
time
()
+
timeleft
data_sent
=
0
data_sent
=
0
trips
=
0
while
True
:
while
True
:
trips
+=
1
data_sent
+=
self
.
send
(
_get_memory
(
data
,
data_sent
),
flags
,
timeout
=
timeleft
)
data_sent
+=
self
.
send
(
_get_memory
(
data
,
data_sent
),
flags
,
timeout
=
timeleft
)
if
data_sent
>=
len
(
data
):
if
data_sent
>=
len
(
data
):
return
data_sent
,
'timeout'
,
self
.
timeout
return
data_sent
,
'timeout'
,
self
.
timeout
,
trips
timeleft
=
end
-
time
.
time
()
timeleft
=
end
-
time
.
time
()
if
timeleft
<=
0
:
if
timeleft
<=
0
:
raise
timeout
(
'timed out'
)
raise
timeout
(
'timed out'
)
...
...
tox.ini
View file @
70c61625
...
@@ -5,7 +5,7 @@ envlist =
...
@@ -5,7 +5,7 @@ envlist =
[testenv]
[testenv]
deps
=
deps
=
greenlet
greenlet
cython
#
cython
whitelist_externals
=
whitelist_externals
=
*
*
commands
=
commands
=
...
...
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