ukhas / js-logtail

Remote log tailing using the HTTP Range header.
109 stars 54 forks source link

Varnish may hang and not serve file, if the intial range is larger than the file. #7

Closed rossengeorgiev closed 9 years ago

rossengeorgiev commented 9 years ago

Can be fixed by changing:
https://github.com/ukhas/js-logtail/blob/f90f69aec771c3e78bcd5903d5756ad45aa7c18d/logtail.js#L29

to

range = "0-" + load.toString();
rossengeorgiev commented 9 years ago

After a good night sleep I realize that's wrong, so the problem is Varnish.