File tree Expand file tree Collapse file tree
src/main/java/org/graylog2/plugin/httpmonitor Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3131 <dependency >
3232 <groupId >com.ning</groupId >
3333 <artifactId >async-http-client</artifactId >
34- <version >1.8.14 </version >
34+ <version >1.9.29 </version >
3535 </dependency >
3636 <dependency >
3737 <groupId >org.graylog2</groupId >
Original file line number Diff line number Diff line change 77import com .google .inject .assistedinject .Assisted ;
88import com .google .inject .assistedinject .AssistedInject ;
99import com .ning .http .client .AsyncHttpClient ;
10- import com .ning .http .client .PerRequestConfig ;
1110import com .ning .http .client .Realm ;
1211import com .ning .http .client .Response ;
1312import org .apache .commons .lang3 .StringUtils ;
@@ -258,7 +257,7 @@ private void buildRequest() {
258257 }
259258
260259 int timeoutInMs = (int )TimeUnit .MILLISECONDS .convert (config .getTimeout (),config .getTimeoutUnit ());
261- requestBuilder .setPerRequestConfig ( new PerRequestConfig ( null , timeoutInMs ) );
260+ requestBuilder .setRequestTimeout ( timeoutInMs );
262261 }
263262 }
264263
You can’t perform that action at this time.
0 commit comments