I use sendfile(socket_fd, file_fd, &offset, left_size)
at linux-2.6.20-1.21 to send a symbol link file by non-block socket. The sendfile()
is blocking when the file size is too large(100K+).
How can I solve this problem?
I use sendfile(socket_fd, file_fd, &offset, left_size)
at linux-2.6.20-1.21 to send a symbol link file by non-block socket. The sendfile()
is blocking when the file size is too large(100K+).
How can I solve this problem?