Permalink
Browse files

TFJ-556 turn off keepalive explicitly. streaming api doesn't need it.

  • Loading branch information...
1 parent c04de61 commit 418153818a52a0480b17a7d3e93e0d3b828978de @yusuke yusuke committed May 9, 2012
Showing with 3 additions and 2 deletions.
  1. +3 −2 twitter4j-stream/src/main/java/twitter4j/TwitterStreamImpl.java
@@ -661,7 +661,9 @@ public int getHttpDefaultMaxPerRoute() {
}
public Map<String, String> getRequestHeaders() {
- return nestedConf.getRequestHeaders();
+ Map<String, String> headers = nestedConf.getRequestHeaders();
+ headers.put("Connection", "close");
+ return headers;
}
public boolean isPrettyDebugEnabled() {
@@ -671,5 +673,4 @@ public boolean isPrettyDebugEnabled() {
public boolean isGZIPEnabled() {
return nestedConf.isGZIPEnabled();
}
-
}

0 comments on commit 4181538

Please sign in to comment.