mkulke / ftplibpp

Platform independent c++ library providing ftp client functionality.
GNU Lesser General Public License v2.1
291 stars 108 forks source link

Don't use the "select" system call, use poll or epoll #44

Open llothar opened 1 year ago

llothar commented 1 year ago

In "ftplib::socket_wait" select is used which contains the unfixable problem of memory corruption and memory leaks on any linux system that uses more then 1024 file descriptions (which hopefully all systems will become one day as this limit is a laughable low amount from 1970 days of Unix)

Only poll and epoll are useable in modern systems.