Correios occasionally cannot handle a request and drop a packet which is one of the causes of the EOFError thrown by Ruby's OpenSSL. The idea is retry the request 3 times and get a response from Correios otherwise re-raise the EOFError.
Coverage remained the same at 100.0% when pulling 39e9434e97c0f9022c8dd6def484f26b1ab0f996 on nelsonsar:add-retry-mechanism into 92f5988075f6a7ab84031358659e1a0cbf743845 on prodis:master.
Coverage remained the same at 100.0% when pulling a0ad5a293871d5d5b1e1eaffbb3638e4c870817e on nelsonsar:add-retry-mechanism into 92f5988075f6a7ab84031358659e1a0cbf743845 on prodis:master.
Coverage remained the same at 100.0% when pulling a0ad5a293871d5d5b1e1eaffbb3638e4c870817e on nelsonsar:add-retry-mechanism into 92f5988075f6a7ab84031358659e1a0cbf743845 on prodis:master.
Correios occasionally cannot handle a request and drop a packet which is one of the causes of the
EOFError
thrown by Ruby's OpenSSL. The idea is retry the request 3 times and get a response from Correios otherwise re-raise theEOFError
.