I am trying to send 2000 files from 1 location to other in a same server using server socket programming java, I am using 10 threads to do that program works fine if
it gives error for 2000 files as Connection reset by peer: socket write error
The server is closing the socket, probably due to an overhead (too much connections or something).
You should post this to SuperUser or ServerFault, to learn how to increment the treeshold you are hitting, whatever it is.
If you are on any Unix, check the file descriptor limit with ulimit -n
. Chances are it's 1024 or something like that.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.