GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||
GeezerVison is showing github.com — Add unix domain socket transport in netty 4.x via JDK16+ by honglh · Pull Request #13965 · netty/netty Conversation
|
|
This patch was created by @honglh with some feedback from me. @honglh works for Oracle, though on a different team than me. They want to get the Micronaut HTTP server (and thus netty) working with domain sockets without epoll. I will help on cleaning up this PR (commit message, compatibility, javadocs, builds, JDK version checks, CLA…) assuming you agree that the general approach is acceptable in netty 4. While this approach is not compatible with the existing kqueue and epoll domain socket implementations (this patch uses the JDK UnixDomainSocketAddress rather than the netty DomainSocketAddress that kqueue and epoll use), I think this tradeoff is reasonable to keep project layout changes to a minimum. Other than that I have no concerns with this approach. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@yawkat let me have a look and come back to you early next week |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
/cc @chrisvest |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @normanmaurer ! Mostly looks fine to me. I've tested it locally and it works, except for the use case we already had a problem with in #13877. When directly constructing a NioDomainServerSocketChannel from a ServerSocketChannel (eg from System.inheritedChannel), and then only registering (not binding) the channel (eg systemd socket activation use case), the channel remains inactive because Another nit: NioDomainServerSocketChannel vs EpollServerDomainSocketChannel, the server and domain are flipped. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@yawkat fixed the naming... let me check what we can do about the "bound" stuff here. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@normanmaurer the link at the bottom of https://docs.google.com/forms/d/e/1FAIpQLSfXTK6SnWWFbR50DFhoZq2floCFOUBH3kG8sZP77im5Rknctg/viewform?formkey=dG9wTmhoeGNGd1MtdFdtVXl4TlVSNlE6MQ to change the list of employees is broken |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@yawkat I just pushed a commit that will allow to correctly detect if a channel was bound before. Also added some tests |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
You haven't |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@yawkat 🤦 now I did :D |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks! I tried locally, and it works out of the box now. Otherwise this PR LGTM, we just need to get the CLA sorted on our end. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
@trustin will fix it. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@chrisvest PTAL |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Looks good. I had some comments, though.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Thanks for your patience, @yawkat. Here's the employee list update form: https://docs.google.com/forms/d/e/1FAIpQLScnQObZBItRc5L9EC_DPB3WVdUA7K_uIgC-I7gxqq3G4JGySQ/viewform |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Will do, I've sent the CLA upstairs :) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
CLA should be submitted. Note that the Oracle Point of Contact also changed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks all ! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
### Motivation: Our use case requires using nio transport for unix-domain-socket (UDS) in netty 4.x. Although netty 5.x supports UDS, it is is not compatible with 4.x. For us and probably many users, having to migrate to 5.x in order to use UDS is not a viable option. ### Modification: Add new classes to support domain UDS with NIO. ### Result: UDS is supported when using the NIO transport when java 16+ is used. Co-authored-by: Norman Maurer <[email protected]>
|
Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
* fix(deps): update netty monorepo to v4.1.110.final * NIO domain socket support From netty/netty#13965 --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
### What changes were proposed in this pull request? The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`. ### Why are the changes needed? - https://netty.io/news/2024/05/22/4-1-110-Final.html This version has brought some bug fixes and improvements, such as: Fix Zstd throws Exception on read-only volumes (netty/netty#13982) Add unix domain socket transport in netty 4.x via JDK16+ ([#13965](netty/netty#13965)) Backport #13075: Add the AdaptivePoolingAllocator ([#13976](netty/netty#13976)) Add no-value key handling only for form body ([#13998](netty/netty#13998)) Add support for specifying SecureRandom in SSLContext initialization ([#14058](netty/netty#14058)) - https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed ### Does this PR introduce _any_ user-facing change? No. ### How was this patch tested? Pass GA. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #46744 from panbingkun/SPARK-48420. Authored-by: panbingkun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`. - https://netty.io/news/2024/05/22/4-1-110-Final.html This version has brought some bug fixes and improvements, such as: Fix Zstd throws Exception on read-only volumes (netty/netty#13982) Add unix domain socket transport in netty 4.x via JDK16+ ([apache#13965](netty/netty#13965)) Backport apache#13075: Add the AdaptivePoolingAllocator ([apache#13976](netty/netty#13976)) Add no-value key handling only for form body ([apache#13998](netty/netty#13998)) Add support for specifying SecureRandom in SSLContext initialization ([apache#14058](netty/netty#14058)) - https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed No. Pass GA. No. Closes apache#46744 from panbingkun/SPARK-48420. Authored-by: panbingkun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`. - https://netty.io/news/2024/05/22/4-1-110-Final.html This version has brought some bug fixes and improvements, such as: Fix Zstd throws Exception on read-only volumes (netty/netty#13982) Add unix domain socket transport in netty 4.x via JDK16+ ([apache#13965](netty/netty#13965)) Backport apache#13075: Add the AdaptivePoolingAllocator ([apache#13976](netty/netty#13976)) Add no-value key handling only for form body ([apache#13998](netty/netty#13998)) Add support for specifying SecureRandom in SSLContext initialization ([apache#14058](netty/netty#14058)) - https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed No. Pass GA. No. Closes apache#46744 from panbingkun/SPARK-48420. Authored-by: panbingkun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`. - https://netty.io/news/2024/05/22/4-1-110-Final.html This version has brought some bug fixes and improvements, such as: Fix Zstd throws Exception on read-only volumes (netty/netty#13982) Add unix domain socket transport in netty 4.x via JDK16+ ([apache#13965](netty/netty#13965)) Backport apache#13075: Add the AdaptivePoolingAllocator ([apache#13976](netty/netty#13976)) Add no-value key handling only for form body ([apache#13998](netty/netty#13998)) Add support for specifying SecureRandom in SSLContext initialization ([apache#14058](netty/netty#14058)) - https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed No. Pass GA. No. Closes apache#46744 from panbingkun/SPARK-48420. Authored-by: panbingkun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
The pr aims to upgrade `netty` from `4.1.109.Final` to `4.1.110.Final`. - https://netty.io/news/2024/05/22/4-1-110-Final.html This version has brought some bug fixes and improvements, such as: Fix Zstd throws Exception on read-only volumes (netty/netty#13982) Add unix domain socket transport in netty 4.x via JDK16+ ([apache#13965](netty/netty#13965)) Backport apache#13075: Add the AdaptivePoolingAllocator ([apache#13976](netty/netty#13976)) Add no-value key handling only for form body ([apache#13998](netty/netty#13998)) Add support for specifying SecureRandom in SSLContext initialization ([apache#14058](netty/netty#14058)) - https://github.com/netty/netty/issues?q=milestone%3A4.1.110.Final+is%3Aclosed No. Pass GA. No. Closes apache#46744 from panbingkun/SPARK-48420. Authored-by: panbingkun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.