Skip to content

Conversation

@zoewangg
Copy link
Contributor

@zoewangg zoewangg commented Oct 29, 2021

Motivation and Context

This is to utilize the tlsNegotiationTimeout from the future sdk-default-configuration.json
Apache HTTP client 4.x and URLConnection currently don't support handshake timeout

Description

Expose tlsNegotiationTimeout for netty client to allow users configure it.

Testing

Added unit tests

Screenshots (if appropriate)

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING document
  • Local run of mvn install succeeds
  • My code follows the code style of this project
  • My change requires a change to the Javadoc documentation
  • I have updated the Javadoc documentation accordingly
  • I have read the README document
  • I have added tests to cover my changes
  • All new and existing tests passed
  • A short description of the change has been added to the CHANGELOG
  • My change is to implement 1.11 parity feature and I have updated LaunchChangelog

License

  • I confirm that this pull request can be released under the Apache 2 license

@zoewangg zoewangg force-pushed the zoewang/NettyTlsNegotiationTimeout branch from a40f7a6 to fa21b54 Compare October 29, 2021 19:44
Copy link
Contributor

@cenedhryn cenedhryn left a comment

Choose a reason for hiding this comment

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

What's the current default value of the TLS negotiation timeout?

@zoewangg
Copy link
Contributor Author

zoewangg commented Nov 1, 2021

The current default value of the TLS negotiation timeout is 10s in netty and that's why I kept it 10s here as well

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 1, 2021

SonarCloud Quality Gate failed.    Quality Gate failed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 2 Code Smells

50.0% 50.0% Coverage
0.0% 0.0% Duplication

@zoewangg zoewangg merged commit a7644b7 into master Nov 1, 2021
@zoewangg zoewangg deleted the zoewang/NettyTlsNegotiationTimeout branch November 1, 2021 22:32
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