Pushing SQS message is not stable

question

#1

Hi, Julians, I am using AWS.jl to push hundreds of thousands of messages to SQS, but I got this error occasionally. I can manually restart it, it works fine again, but it is annoying when to produce a lot of messages. It seems that it is due to the internet connection. It works better late in the night.

any hint of why this happens and how to fix this?

ERROR: LoadError: readcb: connection reset by peer (ECONNRESET)                                       │················
 in yieldto(::Task, ::ANY) at ./event.jl:136                                                          │················
 in wait() at ./event.jl:169                                                                          │················
 in wait(::Condition) at ./event.jl:27                                                                │················
 in wait_readnb(::TCPSocket, ::Int64) at ./stream.jl:303                                              │················
 in readbytes!(::TCPSocket, ::Array{UInt8,1}, ::Int64) at ./stream.jl:725                             │················
 in readbytes!(::TCPSocket, ::Array{UInt8,1}, ::UInt64) at ./stream.jl:714                            │················
 in f_recv(::Ptr{Void}, ::Ptr{UInt8}, ::UInt64) at /usr/people/jingpeng/.julia/v0.5/MbedTLS/src/ssl.jl│················
:103                                                                                                  │················
 in macro expansion at /usr/people/jingpeng/.julia/v0.5/MbedTLS/src/error.jl:3 [inlined]              │················
 in handshake(::MbedTLS.SSLContext) at /usr/people/jingpeng/.julia/v0.5/MbedTLS/src/ssl.jl:145        │················
 in open_stream(::HttpCommon.Request, ::MbedTLS.SSLConfig, ::Float64, ::Nullable{URIParser.URI}, ::Nul│················
lable{URIParser.URI}) at /usr/people/jingpeng/.julia/v0.5/Requests/src/streaming.jl:209               │················
 in #do_stream_request#23(::Dict{String,String}, ::Void, ::Void, ::Void, ::Array{Requests.FileParam,1}│················
, ::Void, ::Dict{Any,Any}, ::Bool, ::Int64, ::Array{HttpCommon.Response,1}, ::MbedTLS.SSLConfig, ::Boo│················
l, ::Bool, ::Bool, ::Nullable{URIParser.URI}, ::Nullable{URIParser.URI}, ::Requests.#do_stream_request│················
, ::URIParser.URI, ::String) at /usr/people/jingpeng/.julia/v0.5/Requests/src/Requests.jl:381         │················
 in (::Requests.#kw##do_stream_request)(::Array{Any,1}, ::Requests.#do_stream_request, ::URIParser.URI│················
, ::String) at ./<missing>:0                                                                          │················
 in #do_request#22(::Array{Any,1}, ::Function, ::URIParser.URI, ::String) at /usr/people/jingpeng/.jul│················
ia/v0.5/Requests/src/Requests.jl:311                                                                  │················
 in (::Requests.#kw##do_request)(::Array{Any,1}, ::Requests.#do_request, ::URIParser.URI, ::String) at│················
 ./<missing>:0        

#2

I have raised an issue in the repo of MbedTLS.jl.

seems that the solution is just doing some error handling and retry.