prodis / correios-cep

Find Brazilian addresses by zipcode, directly from Correios database. No HTML parsers.
Apache License 2.0
168 stars 33 forks source link

Add a simple retry mechanism to WebService #13

Closed nelsonsar closed 6 years ago

nelsonsar commented 8 years ago

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.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling 39e9434e97c0f9022c8dd6def484f26b1ab0f996 on nelsonsar:add-retry-mechanism into 92f5988075f6a7ab84031358659e1a0cbf743845 on prodis:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling a0ad5a293871d5d5b1e1eaffbb3638e4c870817e on nelsonsar:add-retry-mechanism into 92f5988075f6a7ab84031358659e1a0cbf743845 on prodis:master.

coveralls commented 8 years ago

Coverage Status

Coverage remained the same at 100.0% when pulling a0ad5a293871d5d5b1e1eaffbb3638e4c870817e on nelsonsar:add-retry-mechanism into 92f5988075f6a7ab84031358659e1a0cbf743845 on prodis:master.

prodis commented 6 years ago

Closing by inactivity.