-
Notifications
You must be signed in to change notification settings - Fork 78
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
add version selection #305
Conversation
SessionPool config need to add config handshakeKey |
59ec9d0
to
6cffd71
Compare
b8711df
to
aac8c80
Compare
e0605e8
to
45e0573
Compare
0e496ef
to
0dc5f38
Compare
Codecov ReportAttention:
❗ Your organization needs to install the Codecov GitHub app to enable full functionality. Additional details and impacted files@@ Coverage Diff @@
## master #305 +/- ##
==========================================
+ Coverage 77.83% 78.02% +0.18%
==========================================
Files 18 18
Lines 2423 2430 +7
==========================================
+ Hits 1886 1896 +10
+ Misses 537 534 -3 ☔ View full report in Codecov by Sentry. |
f684cd8
to
8aee222
Compare
8dc7be8
to
1dee2c4
Compare
example/SessinPoolExample.py
Outdated
if __name__ == "__main__": | ||
ip = "127.0.0.1" | ||
port = 9669 | ||
|
||
handshakeKey = "3.0.0" |
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.
the example does not use the config handshakeKey.
nebula3/gclient/net/Connection.py
Outdated
"""open the SSL connection | ||
|
||
:param ip: the server ip | ||
:param port: the server port | ||
:param timeout: the timeout for connect and execute | ||
:param handshakeKey: the server version |
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.
handshakeKey: the key for client and server handshake, make sure the handshakeKey is in the white list config of server: client_white_list
self._configs.idle_time != 0 | ||
and connection.idle_time() > self._configs.idle_time | ||
): | ||
if self._configs.idle_time != 0: |
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.
why remove the condition for idle_time?
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.
Accidentally deleted
@@ -15,14 +23,15 @@ | |||
|
|||
AddrIp = ["127.0.0.1", "::1"] | |||
port = 9669 | |||
handshakeKey = "3.0.0" |
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.
please add some tests for wrong handshakeKey value, such as "INVALID_HANDSHAKE_KEY"
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.
LGTM
close #299