<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body dir="auto"><div>What happens if you simplify the match string to only contain characters? Something like </div><div id="AppleMailSignature"><br><blockquote type="cite"><blockquote type="cite"><font color="#000000"><span style="background-color: rgba(255, 255, 255, 0);">sub_filter 'xxx' 'yyy';</span></font></blockquote></blockquote><div id="AppleMailSignature"><br></div>Can it ever do a substitute?</div><div id="AppleMailSignature"><br>Sent from my iPad</div><div><br>On Jul 2, 2017, at 8:26 AM, Valentin V. Bartenev <<a href="mailto:vbart@nginx.com">vbart@nginx.com</a>> wrote:<br><br></div><blockquote type="cite"><div><span>On Friday 30 June 2017 22:14:55 ptcell wrote:</span><br><blockquote type="cite"><span>I've built with the sub filter enabled and I'm finding it hangs requests if</span><br></blockquote><blockquote type="cite"><span>there is a match. It is a very simple substitution/replace. I've</span><br></blockquote><blockquote type="cite"><span>resorted to following the request in GDB and the sub module completes and</span><br></blockquote><blockquote type="cite"><span>calls the next body filter (which in my case appears to be the charset</span><br></blockquote><blockquote type="cite"><span>module). I have no other odd modules enabled other than using threads with</span><br></blockquote><blockquote type="cite"><span>a thread pool size of two (shouldn't matter, right?). Pausing all the</span><br></blockquote><blockquote type="cite"><span>threads in GDB shows no obvious place it is hanging.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>If I change the match string to something that doesn't match anything, the</span><br></blockquote><blockquote type="cite"><span>request works fine.</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Here is my config:</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span> location / {</span><br></blockquote><blockquote type="cite"><span> root html;</span><br></blockquote><blockquote type="cite"><span> index index.html index.htm;</span><br></blockquote><blockquote type="cite"><span> sub_filter '</title>' 'xxx</title>';</span><br></blockquote><blockquote type="cite"><span> sub_filter_once on;</span><br></blockquote><blockquote type="cite"><span> }</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>nginx -V</span><br></blockquote><blockquote type="cite"><span>nginx version: nginx/1.7.11</span><br></blockquote><blockquote type="cite"><span>built by gcc 5.4.0 20160609 (Ubuntu 5.4.0-6ubuntu1~16.04.4) </span><br></blockquote><blockquote type="cite"><span>configure arguments: --with-http_sub_module --with-debug --with-threads</span><br></blockquote><blockquote type="cite"><span>--with-cc-opt='-O0 -g'</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><blockquote type="cite"><span>Thanks!</span><br></blockquote><blockquote type="cite"><span></span><br></blockquote><span></span><br><span>This is very old version of nginx. First of all, you should update up to</span><br><span>the supported version. There are a bunch of bugs have been fixed.</span><br><span></span><br><span> wbr, Valentin V. Bartenev</span><br><span></span><br><span>_______________________________________________</span><br><span>nginx mailing list</span><br><span><a href="mailto:nginx@nginx.org">nginx@nginx.org</a></span><br><span><a href="http://mailman.nginx.org/mailman/listinfo/nginx">http://mailman.nginx.org/mailman/listinfo/nginx</a></span><br></div></blockquote></body></html>