Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
0012f922
Commit
0012f922
authored
Sep 03, 2009
by
Josh Roesslein
Browse files
Fix timeout issue with python 2.5
parent
2b10cff4
Changes
1
Hide whitespace changes
Inline
Side-by-side
tweepy/streaming.py
View file @
0012f922
...
...
@@ -46,7 +46,9 @@ class Stream(object):
# quit if error count greater than retry count
break
try
:
conn
=
httplib
.
HTTPConnection
(
self
.
host
,
timeout
=
self
.
timeout
)
conn
=
httplib
.
HTTPConnection
(
self
.
host
)
conn
.
connect
()
conn
.
sock
.
settimeout
(
self
.
timeout
)
conn
.
request
(
'POST'
,
self
.
url
,
headers
=
headers
)
resp
=
conn
.
getresponse
()
if
resp
.
status
!=
200
:
...
...
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