ironsmile / nedomi

Highly performant HTTP reverse proxy with efficient caching of big files
GNU General Public License v3.0
81 stars 9 forks source link

refactor timeoutConn #199

Closed mstoykov closed 8 years ago

mstoykov commented 8 years ago

timeoutConn.ReadFrom was way too complicated - now it's a lot simpler.

the new utils.CopyN makes certain that only one io.LimitedReader is used. This is mostly useful incases where two or more such might get added one after another leading to sendfile not being used - it can only get trough one.