Skip to content

Conversation

@1st1
Copy link
Member

@1st1 1st1 commented Jun 4, 2018

No description provided.

sock.close()
raise

class TLSUpgradeProto(asyncio.Protocol):
Copy link
Member

Choose a reason for hiding this comment

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

Any reason not to make this a global class?


if hasattr(loop, 'start_tls'):
tr, pr = await loop.create_connection(TLSUpgradeProto, host, port)
tr.write(struct.pack('!ll', 8, 80877103)) # SSLRequest message.
Copy link
Member

Choose a reason for hiding this comment

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

make a common helper or move struct.pack into a constant?

@1st1
Copy link
Member Author

1st1 commented Nov 20, 2019

This PR is now part of #504

@1st1 1st1 closed this Nov 20, 2019
@1st1 1st1 deleted the start_tls branch November 20, 2019 18:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants