From 616aafcd496569fbbb5d0be710d3b332e92bcf61 Mon Sep 17 00:00:00 2001 From: Reinhard Naegele Date: Mon, 11 May 2015 11:12:41 +0200 Subject: [PATCH] Enhance Javadocs on OkHttpClient.setSocketFactory --- okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java b/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java index ed0811e9d..06c9fbd44 100644 --- a/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java +++ b/okhttp/src/main/java/com/squareup/okhttp/OkHttpClient.java @@ -351,7 +351,10 @@ public class OkHttpClient implements Cloneable { } /** - * Sets the socket factory used to create connections. + * Sets the socket factory used to create connections. OkHttp only uses + * the parameterless {@link SocketFactory#createSocket() createSocket()} + * method to create unconnected sockets. Overriding this method, + * e. g., allows the socket to be bound to a specific local address. * *

If unset, the {@link SocketFactory#getDefault() system-wide default} * socket factory will be used.