curl - When is a HTTP request lost? -
i need send quite large http requests mobile device. in situation request lost (so data sent have resent)?
what happen example if there no radio-connection few seconds? depend on decision in network can't control?
there not timeouts on server. control client , can assume stable. calls goes curl libraries (posix c++, embedded linux), , limited how can change it.
as "some" said, should split upload parts, number them , re-assemble them on other end. once wrote webservice that, client have confirmation particular part has been received right checksum (for example sha-1 hash).
if confirmation doesn't come because of time out or hash doesn't match, client should re-send part. advice make each chunk small enough 1-10 kb, depending on expected network speed (slow network smaller chunks).
Comments
Post a Comment