sockets - Optimal block size in java streams -


i have theoretical question. let's imagine have inputstream , outputstream. nead copy content 1 other , don't know size of content need transfer. best choice in general of block size in write method?

the answer is: it depends. general solution, stop worrying , use library. common choices:


Comments

Popular posts from this blog

php - What is the difference between $_SERVER['PATH_INFO'] and $_SERVER['ORIG_PATH_INFO']? -

fortran - Function return type mismatch -

queue - mq_receive: message too long -