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

Connect command on exising TCP connection #6

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

dgllghr
Copy link

@dgllghr dgllghr commented May 6, 2019

Open to any suggestions. I'm not totally happy with the connect_existing name.

I moved the calls to prepare_send_* into the state where the data is sent. This made it easier to jump into the state machine after the initial TCP connection is established and I think it better matches what I expect to happen. But I could be missing why it was set up the way it was.

@sticnarf
Copy link
Owner

sticnarf commented May 8, 2019

I made preparing separate states because we might prepare multiple times if poll_write blocks.

@sticnarf
Copy link
Owner

sticnarf commented May 8, 2019

I'm considering not containing the connecting part in ConnectFuture after we support this feature. The proxy field in ConnectFuture is useless when we use an existing TCP connection.

@dgllghr
Copy link
Author

dgllghr commented May 10, 2019

Oh gotcha, now I understand the PrepareRequest state. I will add it back.

Removing the proxy field and having a separate field for connecting TCP vs. connecting SOCKS makes sense to me. I'll take a stab at factoring it out.

@trinity-1686a
Copy link
Contributor

I believe this was postponed by #20

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.

3 participants