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

[AMQP] Update Sync Transport to Use Socket Connection API #38966

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

Conversation

kashifkhan
Copy link
Member

update the connect code to use the new socket helper method to create a socket connection

@kashifkhan
Copy link
Member Author

/azp run python - eventhub - tests

@kashifkhan
Copy link
Member Author

/azp run python - servicebus - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kashifkhan
Copy link
Member Author

/azp run python - servicebus - perf

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kashifkhan
Copy link
Member Author

/azp run python - eventhub - perf

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@azure-sdk
Copy link
Collaborator

API change check

API changes are not detected in this pull request.

@@ -190,7 +190,11 @@ def connect(self):
# are we already connected?
if self.connected:
return
self._connect(self.host, self.port, self.connect_timeout)
Copy link
Member

Choose a reason for hiding this comment

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

why were we using _connect before?

Copy link
Member Author

Choose a reason for hiding this comment

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

the helper method create_connection does the same thing as what _connect was doing https://github.com/python/cpython/blob/fa6c48e4b3d5b6f80a9aed07d4a5620bf62f195f/Lib/socket.py#L822

@kashifkhan
Copy link
Member Author

/azp run python - servicebus - tests

@kashifkhan
Copy link
Member Author

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kashifkhan
Copy link
Member Author

/azp run python - servicebus - tests

@kashifkhan
Copy link
Member Author

/azp run python - eventhub - tests

Copy link

Azure Pipelines successfully started running 1 pipeline(s).

1 similar comment
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@kashifkhan kashifkhan marked this pull request as ready for review January 15, 2025 23:46
Copy link
Member

@swathipil swathipil left a comment

Choose a reason for hiding this comment

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

can we run stress to double check it's good?

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

Successfully merging this pull request may close these issues.

4 participants