Request is not getting submitted properly. Ww gett

2019-09-10 15:30发布

问题:

We are submitting some data to java seevlet from an android application. Data is actually a very large string . it has 4 images in base64 format and some other data. We are sending all of these in single json string format. For example: our sample data is : Request = {entire data in json key value format}

We are reading this request parameter at servlet and converting its string value into json object.

Problem is sometimes we get this below exception when we post data. We are using content- type is application/x-www-form...

Exception: java.net.SocketTimeoutException: Async operation timed out

We need to try multiple types to submit the request.

Not able to understand why this exception come. Wheather it is a network issue or something else. Issue is majorly obssrved on 2g network. Thanks in advance