maxiepax / go-via

go-via is a deployment tool for imaging and customising VMware ESXi Hypervisors.
GNU General Public License v3.0
17 stars 1 forks source link

tftp slow on WAN - possible to change blocksize of tftp ? #4

Open nbjac0bsen opened 9 months ago

nbjac0bsen commented 9 months ago

Hi,

tftp is very very slow on WAN line, latency is 25 ms and transfer is only 60 KB/s (I can easily copy with 8 MB/s on this site) and when I deploy in Datacenter I get 3 MB/s. Made some searches around and it seems to be a problem with tftp. And a fix could be to set Blocksize on tftp https://datatracker.ietf.org/doc/html/rfc2348

// SetBlockSize sets the maximum size of an individual data block. https://github.com/pin/tftp/blob/master/server.go See line 144

Could this be implemented so you could change the Blocksize, maybe in the "config.json" file.

Else a very good tool.

Thanks

/Nicolas