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

How to understand 2 main() functions after using uftrace to profile the C++ program? -

c# - Update a combobox from a presenter (MVP) -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -