Visitar URL original
Remove Request#setConnectionKeepAlive() · scribejava/scribejava@d7c173c · GitHub
Skip to content

Commit d7c173c

Browse files
committed
Remove Request#setConnectionKeepAlive()
1 parent e47e494 commit d7c173c

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

‎src/main/java/org/scribe/model/Request.java‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ public class Request
3131
private HttpURLConnection connection;
3232
private String charset;
3333
private byte[] bytePayload = null;
34-
private boolean connectionKeepAlive = false;
3534
private boolean followRedirects = true;
3635
private Long connectTimeout = null;
3736
private Long readTimeout = null;
@@ -81,7 +80,6 @@ private void createConnection() throws IOException
8180
String completeUrl = getCompleteUrl();
8281
if (connection == null)
8382
{
84-
System.setProperty("http.keepAlive", connectionKeepAlive ? "true" : "false");
8583
connection = (HttpURLConnection) new URL(completeUrl).openConnection();
8684
connection.setInstanceFollowRedirects(followRedirects);
8785
}
@@ -350,17 +348,6 @@ public void setCharset(String charsetName)
350348
this.charset = charsetName;
351349
}
352350

353-
/**
354-
* Sets whether the underlying Http Connection is persistent or not.
355-
*
356-
* @see http://download.oracle.com/javase/1.5.0/docs/guide/net/http-keepalive.html
357-
* @param connectionKeepAlive
358-
*/
359-
public void setConnectionKeepAlive(boolean connectionKeepAlive)
360-
{
361-
this.connectionKeepAlive = connectionKeepAlive;
362-
}
363-
364351
/**
365352
* Sets whether the underlying Http Connection follows redirects or not.
366353
*

0 commit comments

Comments
 (0)