Open alex-eri opened 3 years ago
This seems to be a duplicate of #19
Hello, I have corrected it by placing an exception in the get_max_udp_datagram_size() method in tftpserver.py file as follows:
def get_max_udp_datagram_size(): """Retrieve the maximum UDP datagram size allowed by the system.""" try: val = subprocess.check_output(['sysctl', '-n', 'net.inet.udp.maxdgram']) except Exception as err: val = subprocess.check_output(['sysctl', '-n', 'net.core.rmem_max']) return int(val)
We noticed that syctl does not get this system variable net.inet.udp.maxdgram, so we add the one that in my case (ubuntu server) finds: net.core.rmem_max
Regards, Franklin frincon@grupofaster.com www.grupofaster.com
Linux 5.10.20-1-lts