Re: [go-nuts] Re: Canonical http upload code

2017-06-29 Thread Kai Hendry
Just to conclude since I accidentally went into a private conversation with Dave, that a simple example here: https://github.com/kaihendry/go-upload Handles large uploads with ease. Something is amiss with https://github.com/wmark/caddy.upload/issues/24 that I need to track down, though I've got a

[go-nuts] Re: Canonical http upload code

2017-06-26 Thread Dave Cheney
Update, after running this program several times the 112mb/sec number is limited by how quickly the file could be streamed off disk. Once the source file was cached, the time to upload 7.4 gb dropped to around 3 seconds, so ~ 2.5 gb / sec, which is more reasonable for the loopback. What do you

[go-nuts] Re: Canonical http upload code

2017-06-26 Thread Dave Cheney
Hi Kai, I had a quick play with this simple server https://play.golang.org/p/LFx0HmXK4q This simple server took 67 seconds to upload a 7.4gb file over the loopback interface, which is around 112 mb per second, which is faster than what you are seeing, but not that fast either, given it's on th