Skip to content
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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

V1 #1

wants to merge 1 commit into from

Conversation

mux99
Copy link

@mux99 mux99 commented May 16, 2024

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.

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.
@@ -0,0 +1,2 @@
# http_mptcp
This
Copy link
Member

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
Copy link
Member

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)
Copy link
Member

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")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the builder?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants