networking - A File Server and Sockets -


i working on file server program ( written in c) delivers content of several files clients. both file server , client machines run linux. reduce time transfer of files between servers , clients.

i using sockets transfer files, 1 socket per client. if use 2 sockets per client, time file transfer go down? note, hardware such there 1 physical path machine.

thanks bob

depends on bottleneck. in general, no, 2 or more sockets wouldn't speed transfer, if implemented correctly bottleneck network itself. first thing comes mind size of socket send/receive buffers, system defaults quite small numbers (e.g. 8kb). try increase send buffer on server , receive buffer on client.

if use tcp it's tuned such use case. still there're known issues it, e.g. using fat channels on long distance. providing more info environment/implementation can better answers.


Comments

Popular posts from this blog

javascript - Confirm a form & display message if form is valid with JQuery -

Retrieving ETA (estimated time of arrival) with Google Distance Matrix API and public transit as transport mode -

ionic framework - Meteor - Error: Failed to execute 'insertBefore' on 'Node' -