-
Notifications
You must be signed in to change notification settings - Fork 1
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
V1 #1
base: main
Are you sure you want to change the base?
V1 #1
Conversation
@@ -0,0 +1,2 @@ | |||
# http_mptcp | |||
This |
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.
Nice readme :-)
Should you duplicate what's in the PR message?
@@ -0,0 +1,2 @@ | |||
# http_mptcp | |||
This |
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.
can you remove the binary files from the dist
directory? (and add a .gitignore
file?)
class HTTPConnection(http.client.HTTPConnection): | ||
def __init__(self, host, port=None, timeout=socket._GLOBAL_DEFAULT_TIMEOUT, | ||
source_address=None, blocksize=8192): | ||
super().__init__(host, port, timeout, source_address, blocksize) |
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.
can you not set self._create_connection = _create_connection
and that's it, no need to redifine connect
, no?
class HTTPServer(HTTPServer_old): | ||
def __init__(self, server_address, RequestHandlerClass, bind_and_activate=True): | ||
"""Constructor. May be extended, do not override.""" | ||
print("bob") |
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 builder?
this package aims to be a superset of the native
'http' module in python.
This package should be used in the exact same way,
with the difference that it uses MPTCP. Since using the
package is a conscious choice of the users, no fallback
mechanism is present.
The current implementation is crude and should be treated
more as proof of concept than a finished package.
Attention should be given to the dependencies and functions
inherited from 'http', there is probably a better way of making
things work.