-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
full support for UnixDomainSocket backend #1173
base: dev/3.0.0
Are you sure you want to change the base?
Conversation
Seems to already be in 5.0.0 as was done in #991 ? |
It's look like change the bind, instead of backend support |
My modification is for the |
My idea is |
StringBuilder data = new StringBuilder().append(proxyPlayer.getVirtualHost().orElseGet(() -> | ||
registeredServer.getServerInfo().getAddress()).getHostString()) | ||
.append('\0') | ||
StringBuilder data = new StringBuilder().append(getRemoteAddress()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this changes the intended behavior here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unix socket hoststring like /xxx/xxx
is a filename, but inetsocketaddress.getHostString is a ipaddress, because of these two differences, resulting in different behaviors?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh i missing a .append('\0')
// String playerVhost = | ||
// proxyPlayer.getVirtualHost().orElseGet(() -> registeredServer.getServerInfo().getAddress()) | ||
// .getHostString(); | ||
String playerVhost = getRemoteAddress(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no
@@ -25,6 +25,8 @@ | |||
import io.netty.channel.epoll.EpollEventLoopGroup; | |||
import io.netty.channel.epoll.EpollServerSocketChannel; | |||
import io.netty.channel.epoll.EpollSocketChannel; | |||
import io.netty.channel.epoll.EpollDomainSocketChannel; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
epoll is epoll, we can't just slap it on every single connection type, that is not how that works
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so i patch the paper
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
so i patch the paper
Support paper backend with UnixDomainSocket
Is must work with this
refer to #991