It only happens when I run the program at AWS, not always, but often when send new requests. It does not happen when I run the program at my local.
The program has two layers of asynchronous function. First, asynchronous call each content provider. Second, asynchronous call each url inside the content provider. I can receive content from the provider, however, the connection reset by peer happens after it. Please help me figure out how to fix it. Thanks.
2018-07-13 23:14:26,018 ERROR ConnectionBase - java.io.IOException: Connection reset by peer
2018-07-13 23:14:26,019 ERROR ConnectionBase - java.io.IOException: Connection reset by peer
2018-07-13 23:14:26,019 ERROR ConnectionBase - java.io.IOException: Connection reset by peer
2018-07-13 23:14:26,019 ERROR ConnectionBase - java.io.IOException: Connection reset by peer
2018-07-13 23:14:26,019 ERROR ConnectionBase - java.io.IOException: Connection reset by peer
2018-07-13 23:14:26,020 DEBUG FutureList - wait all 5 futures complete elapsed 2 millis.
2018-07-13 23:14:26,020 WARN Warnings - warning from FutureList
io.vertx.core.VertxException: java.io.IOException: Connection reset by peer
at io.vertx.ext.sync.Sync.awaitResult(Sync.java:49) ~[ContentProviderPlatformServer.jar:?]