Sending a large file over network continuously
Posted
by David Parunakian
on Stack Overflow
See other posts from Stack Overflow
or by David Parunakian
Published on 2010-06-07T09:40:03Z
Indexed on
2010/06/07
10:02 UTC
Read the original article
Hit count: 179
Hello,
We need to write software that would continuously (i.e. new data is sent as it becomes available) send very large files (several Tb) to several destinations simultaneously. Some destinations have a dedicated fiber connection to the source, while some do not.
Several questions arise:
- We plan to use TCP sockets for this task. What failover procedure would you recommend in order to handle network outages and dropped connections?
- What should happen upon upload completion: should the server close the socket? If so, then is it a good design decision to have another daemon provide file checksums on another port?
- Could you recommend a method to handle corrupted files, aside from downloading them again? Perhaps I could break them into 10Mb chunks and calculate checksums for each chunk separately?
Thanks.
© Stack Overflow or respective owner