Configure raw socket options

This commit is contained in:
M66B 2021-08-25 21:38:55 +02:00
parent aa356df316
commit 4a3a9ffdc1
1 changed files with 1 additions and 2 deletions

View File

@ -911,6 +911,7 @@ public class EmailService implements AutoCloseable {
@Override
public Socket createSocket(Socket s, String host, int port, boolean autoClose) throws IOException {
configureSocketOptions(s);
return configure(factory.createSocket(s, server, port, autoClose));
}
@ -932,8 +933,6 @@ public class EmailService implements AutoCloseable {
}
private Socket configure(Socket socket) throws SocketException {
configureSocketOptions(socket);
if (socket instanceof SSLSocket) {
SSLSocket sslSocket = (SSLSocket) socket;