Skip to content
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

Unable to create unbound SSL server sockets #55

Open
emolsson opened this issue Jan 21, 2019 · 0 comments
Open

Unable to create unbound SSL server sockets #55

emolsson opened this issue Jan 21, 2019 · 0 comments

Comments

@emolsson
Copy link

In the ServerSocketFactory it seems like there is a missing override for an unbound/plain #createServerSocket(). There is a matching implementation in OpenSSLServerSocket but it's not possible to reach it through the ServerSocketFactory implemented.

This caused us to get an exception for "Unbound server sockets not implemented" (JDK default impl). Since there is an implementation in OpenSSLServerSocket I guess it could be as simple as adding an override like:

@Override
public ServerSocket createServerSocket() throws IOException {
 return new OpenSSLServerSocket(OpenSSLContextSPI.this);
}

to the ServerSocketFactory. I can add that I don't have the possibility to change the code that is creating the socket as it is external software. But adding the above override made it work for me.

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

No branches or pull requests

1 participant