<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Feb 12, 2020, 11:07 PM Eran Kornblau <<a href="mailto:eran.kornblau@kaltura.com">eran.kornblau@kaltura.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div lang="EN-US" link="#0563C1" vlink="#954F72">
<div class="m_-5549817571730767240WordSection1">
<p class="MsoNormal">I don’t know what you’re trying to solve… but maybe you can just send a range request relative to the end,<br>
without any custom module.<br>
For example, ‘Range: bytes=-1024’ will return the last 1k of the resource.</p></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto"></div><div dir="auto">Thanks but this is not what I was hoping for. The idea is to have Nginx return new data as soon as it is available in the tailed file. </div><div dir="auto"><br></div><div dir="auto">A client would issue one request and simply wait for the data to arrive in chunked transfer encoding. </div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="EN-US" link="#0563C1" vlink="#954F72"><div class="m_-5549817571730767240WordSection1"><p class="MsoNormal"><u></u><u></u></p>
<p class="MsoNormal"><br><u></u></p><div>
<div>
<p class="MsoNormal">What would be the best way to write a Nginx module that would essentially tail a file? </p></div></div></div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Thanks</div><div dir="auto">Max</div><div dir="auto"><br></div><div dir="auto"></div></div>