-
Notifications
You must be signed in to change notification settings - Fork 348
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
HTTPCORE-761: support ExtendedSocketOption in socket #442
Conversation
httpcore5/src/main/java/org/apache/hc/core5/reactor/IOReactorConfig.java
Show resolved
Hide resolved
httpcore5/src/main/java/org/apache/hc/core5/net/ExtendedSocketOptions.java
Outdated
Show resolved
Hide resolved
@kkewwei Also there are test failures with Java 1.8
|
httpcore5/src/main/java/org/apache/hc/core5/reactor/SingleCoreIOReactor.java
Outdated
Show resolved
Hide resolved
@kkewwei I just discovered that the test case you have submitted was failing on Win11 with JRE 11.0.20. I removed your commit from
|
@ok2c I don't have access to Win11. let me try to find the reason. |
@ok2c, It seems unnecessary to find out why the test fails on windows11. If the user set parameters and httpcomponents does not support on the platform, then an exception will be thrown , which force the user to remove it. We just need to add the check like this:
If ok, I will modify the unit test. |
@kkewwei Yes, that would be enough as far as I am concerned. |
@kkewwei You may also consider doing something similar to what |
@ok2c I don't quite understand what you mean. could you describe it more clearly? very thank you. I should test whether it is supported on a Win OS variant? or whether it works when I set successful on a Win OS variant? |
@kkewwei I am sorry I could not express myself clearly enough. What I am trying to say that one can use different asserts or even skip some tests / asserts altogether when running on Windows. |
@ok2c, how about like this?
It seems that I can't push code to the pr, If I should create a new pr? |
@kkewwei Exactly. |
Support setting TCP_KEEPIDLE, TCP_KEEPINTERVAL, TCP_KEEPCOUNT in Socket.