async-http-client icon indicating copy to clipboard operation
async-http-client copied to clipboard

can support the unix domain socket protocol?

Open silence-coding opened this issue 6 years ago • 4 comments

Hello, dear open source contributors! When can you support the Unix domain socket protocol? I have simply verified the feasibility of this function through intrusive modification, and the workload is within three hundred lines of code; but limited by the company's internal open source process, I can not provide you with the source code.

silence-coding avatar Oct 19 '19 15:10 silence-coding

The underlying implementation of async-http-client (netty) currently supports the unix domian socket protocol.

silence-coding avatar Oct 19 '19 15:10 silence-coding

The code modification is mainly to modify the IntSocketAddress to SocketAddress, and create a connection method by selecting the different netty in the connection establishment type by IntSocketAddress or UnixDomainSocket.

silence-coding avatar Oct 19 '19 15:10 silence-coding

NettyRequestSender.java ==》 resolveAddresses

silence-coding avatar Oct 19 '19 16:10 silence-coding

Contributions welcome. That's not something I expect to work on any time soon.

slandelle avatar Oct 21 '19 10:10 slandelle