-
Notifications
You must be signed in to change notification settings - Fork 128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
tornado 5.x support #232
tornado 5.x support #232
Changes from all commits
507b987
929b3b2
437224d
1a340f9
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,17 @@ def recv(self, size): | |
def read(self, size): | ||
return self._recv(size, self._socket.read) | ||
|
||
def recv_into(self, buf, nbytes=0): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. why is this method necessary? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. it's the socket method which tornado-5.x uses instead of |
||
# no real support of efficient recv_into() | ||
n = nbytes or len(buf) | ||
data = self.recv(n) | ||
r = len(data) | ||
if r > n: | ||
self._bootstrapped = data[n:] | ||
r = n | ||
buf[:r] = data[:r] | ||
return r | ||
|
||
def _recv(self, size, method): | ||
if self._bootstrapped: | ||
data = self._bootstrapped | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
# also update in setup.py | ||
__version__ = '0.8.3' | ||
__version__ = '0.9.0-beta1' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we were checking if the TLS server certificate was valid for the hostname connected to. Now, if not
ssl.CERT_NONE
, this will (I think) check hostname ...