Questions tagged [asynchttpclient]

Asynchronous HTTP client library for Java

See the GitHub repo for more information. In essence:

AsyncHttpClient allows Java applications to easily execute HTTP requests and asynchronously process the HTTP responses. Feature-packed, wicked fast, and actively maintained.

323 questions
2
votes
1 answer

Strange bottleneck with apache HttpClients (sync and async)

I'm trying to test the limits of the apache http client libraries and I'm running into a strange bottleneck. My test consists of the following: A wiremock server that simulates a fixed 80ms delay A unit test which uses an…
2
votes
2 answers

Async HTTP post retry and exhaust after max retries

How can I exhaust retries after a number of failed async request calls? I am using AsyncHttpClient to send requests to our server. In case of request timeouts, connection exceptions, etc., I would like the client to retry N times and throw a custom…
EasyQuestions
  • 327
  • 1
  • 10
  • 23
2
votes
0 answers

Would there be a memory leak if Asynchttpclient is not closed?

We are using AsynHttpClient in our application. We have a use case where we have to make huge number of fire and forget requests, As this uses NIo we thought its a good approach. The AHC Client as mentioned in the documentation suggests it shares…
2
votes
0 answers

uploading an image as (Byte array) from android to asp.net mvc server

im using asynchttpclient in android to upload an image as (Byte array) to the server byte[] bytes; //incommming bytes RequestParams params = new RequestParams(); params.put("imgBytes",new ByteArrayInputStream(bytes)); …
2
votes
0 answers

Proxying large files using armeria or asynchttpclient

I have a proxy server made with Armeria which should start a download from a source and simultaneously stream it outwards to a destination. The file should be streaming as this is a proxy server and I don't want to make it store and forward. This…
Joeav
  • 91
  • 5
2
votes
0 answers

AsyncHttpClient.get() new TextHttpResponseHandler Not returning successful or failed

I have a node.js server running on localhost, and using an Android app I am trying to generate a client token with the code on the server; however, when using a AsyncHttpClient .get() method which creates a new TextHttpResponseHandler, neither the…
Liam G
  • 771
  • 2
  • 9
  • 26
2
votes
2 answers

ArrayList iterator.remove() inside AsyncHttpClient throws IllegalStateException

I am trying to do HttpClient POST to submit each item of an ArrayList one by one to the server. Here are some snippets of my codes: ArrayList testArrayList = new ArrayList<>(); testArrayList.add("Item 1"); testArrayList.add("Item…
tyn
  • 543
  • 3
  • 7
  • 20
2
votes
0 answers

Android. SSLHandshakeException Connection reset by peer in AsyncHttpClient or Retrofit

Does someone know what can be wrong in configuration, that I getting such exception: javax.net.ssl.SSLHandshakeException: SSL handshake aborted: ssl=0x71c528b200: I/O error during system call, Connection reset by peer And how to configure this…
D.K.
  • 1,315
  • 2
  • 11
  • 20
2
votes
0 answers

removing SSL pinning on Android

Hi I have a situation where I want to remove SSL pinning on the Android app. Here is the code I have which does the SSL pinning. private AsyncHttpClient m_asyncHttpClient; m_asyncHttpClient.setSSLSocketFactory(getSSLSocketFactory()); private static…
BRDroid
  • 3,920
  • 8
  • 65
  • 143
2
votes
2 answers

How to do Async Http Call with Apache Beam (Java)?

Input PCollection is http requests, which is a bounded dataset. I want to make async http call (Java) in a ParDo , parse response and put results into output PCollection. My code is below. Getting exception as following. I cound't figure out the…
foxwendy
  • 2,819
  • 2
  • 28
  • 50
2
votes
0 answers

SSLV3_ALERT_HANDSHAKE_FAILURE sometimes occur

Well, I am not very knowledgeable about this area of networking, but I tried my best in searching for similar issue with no success. I built web services secured with client certificate and made my Android app to connect to them through…
Fatema
  • 23
  • 1
  • 3
2
votes
0 answers

Async HTTP Upload to S3 using presignedURL (with progress indicator)

The code below provides the ability to upload a zip archive to a AWS s3 presigned URL. I resorted to using HttpURLConnection to conduct the upload, but it seems to block on getResponse. I am looking to implement a feedback loop so that I can print…
2
votes
1 answer

How to resolve tomcat memory leak warning - The web application have started a thread but has failed to stop it

I am using com.ning.async-http-client(1.9.40) library to post asynchronous request. While shutting down tomcat, I am getting below messages in catalina.out log :- SEVERE: The web application [/xyz] appears to have started a thread named [Hashed…
Khushboo
  • 223
  • 2
  • 4
  • 9
2
votes
1 answer

Share Netty NioEventLoopGroup between Lettuce & AsyncHttpClient

My application is using Netty 4.1.6.Final and Lettuce 4.3.0, Async Http Client 2.1.0 Lettuce 4.3.0 also relies on netty 4.1.6.Final. Async Http Client 4.3.0 also relies on netty 4.1.4.Final. Now I see Lettuce creates its thread pool. Async Http…
Mr.Wang from Next Door
  • 13,670
  • 12
  • 64
  • 97
2
votes
4 answers

SSLHandshakeException: no cipher suites in common using asynchttpclient and wiremock using self signed certificate

I have a java client written using the asynchttpclient library. During an integration test I am setting up a wiremock server with which to test. The connection needs to be over ssl. I am hence generating self signed certificates for my domain: …
mangusbrother
  • 3,988
  • 11
  • 51
  • 103