https://redmine.lighttpd.net/https://redmine.lighttpd.net/favicon.ico?13667327412009-08-21T09:16:11Zlighty labsLighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63062009-08-21T09:16:11Zstbuehler
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Invalid</i></li><li><strong>Assignee</strong> deleted (<del><i>darix</i></del>)</li><li><strong>Priority</strong> changed from <i>High</i> to <i>Normal</i></li></ul><p>If your system doesn't support sendfile on the filesystems/sockets you need don't use it.</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63072009-08-21T09:36:36Zstephen
<ul><li><strong>Status</strong> changed from <i>Invalid</i> to <i>Patch Pending</i></li><li><strong>Assignee</strong> set to <i>darix</i></li></ul><p>stbuehler wrote:</p>
<blockquote>
<p>If your system doesn't support sendfile on the filesystems/sockets you need don't use it.</p>
</blockquote>
<p>how to disable it? can I config it like the following:</p>
<p>proxy-core.allow-x-sendfile = "disable"</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63082009-08-21T09:38:59Zicy
<ul><li><strong>Status</strong> changed from <i>Patch Pending</i> to <i>Need Feedback</i></li><li><strong>Assignee</strong> deleted (<del><i>darix</i></del>)</li></ul><p>You can set the network handler to writev or write. What version of Solaris are you using?</p>
<p>BTW: X-sendfile is something different. It just has the same name as the system call sendfile() :)</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63092009-08-21T09:44:21Zstephen
<ul></ul><p>icy wrote:</p>
<blockquote>
<p>You can set the network handler to writev or write. What version of Solaris are you using?</p>
<p>BTW: X-sendfile is something different. It just has the same name as the system call sendfile() :)</p>
</blockquote>
<p>version is:<br />SunOS test-cl2 5.10 Generic_137111-03 sun4v sparc SUNW,SPARC-Enterprise-T5220 Solaris</p>
<p>how to update lighttpd.conf?</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63102009-08-21T09:48:27Zicy
<ul></ul><pre>
server.network-backend = "writev"
</pre> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63112009-08-21T10:00:15Zstephen
<ul></ul><p>icy wrote:</p>
<blockquote>
<p>[...]</p>
</blockquote>
<p>Thank you.</p>
<p>Could you explain more: Is this special for solaris? do we have fix for it in latest svn version? If I use lower version like 1.4.xx, do we have the same issue?</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63122009-08-21T10:06:05Zicy
<ul></ul><p>According to <a class="external" href="http://docs.sun.com/app/docs/doc/816-5172/sendfilev-3ext?l=en&a=view&q=sendfilev">http://docs.sun.com/app/docs/doc/816-5172/sendfilev-3ext?l=en&a=view&q=sendfilev</a>, Solaris does not support using sendfile() with sockets of type AF_UNIX (unix sockets).<br />You probably are using a fastcgi backend over a unix socket, right?<br />Just use writev as the network backend, it's fine.</p>
<p>Version of lighty does not matter in this case.</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63132009-08-21T10:25:12Zstephen
<ul></ul><p>icy wrote:</p>
<blockquote>
<p>According to <a class="external" href="http://docs.sun.com/app/docs/doc/816-5172/sendfilev-3ext?l=en&a=view&q=sendfilev">http://docs.sun.com/app/docs/doc/816-5172/sendfilev-3ext?l=en&a=view&q=sendfilev</a>, Solaris does not support using sendfile() with sockets of type AF_UNIX (unix sockets).<br />You probably are using a fastcgi backend over a unix socket, right?<br />Just use writev as the network backend, it's fine.</p>
<p>Version of lighty does not matter in this case.</p>
</blockquote>
<p>Thanks a lot.</p>
<p>It's not happened all the time, sometimes we got many many this error messages, sometimes don't have, so do you have any suggestion on how to reproduce this error? so that I can make sure this update will fix this issue.</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63142009-08-21T13:15:41Zbenbrown
<ul></ul><p>stephen wrote:</p>
<blockquote>
<p>It's not happened all the time, sometimes we got many many this error messages, sometimes don't have, so do you have any suggestion on how to reproduce this error? so that I can make sure this update will fix this issue.</p>
</blockquote>
<p>Hi,</p>
<p>I'm on Solaris 10 here, and have had this error on 1.4 before changing to use writev. I only encountered it when some PHP was handling a file upload in a multi-part form. If you want to trigger this error it would be worth trying this.</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=63152009-08-21T14:20:26Zstephen
<ul></ul><p>benbrown wrote:</p>
<blockquote>
<p>stephen wrote:</p>
<blockquote>
<p>It's not happened all the time, sometimes we got many many this error messages, sometimes don't have, so do you have any suggestion on how to reproduce this error? so that I can make sure this update will fix this issue.</p>
</blockquote>
<p>Hi,</p>
<p>I'm on Solaris 10 here, and have had this error on 1.4 before changing to use writev. I only encountered it when some PHP was handling a file upload in a multi-part form. If you want to trigger this error it would be worth trying this.</p>
</blockquote>
<p>Thanks!</p>
<p>Actually there is no file upload function in my application, just handle normal GET and POST request, a few of images and css files; back-end uses lighttpd + fastcgi over a unix socket, lighttpd listen on 2 different ports, both use the same unix socket file, totally 90 fastcgi processes running.</p>
<p>Also sometimes I got this error message:<br />mod_proxy_backend_fastcgi.c.487: (error) looks like the fastcgi-backend (/rest/get_role) terminated before it sent a FIN packet</p>
<p>Current lighttpd.conf is:<br />$HTTP["url"] !~ "^/(favicon.ico$|static/)" {<br /> proxy-core.balancer = "round-robin" <br /> proxy-core.protocol = "fastcgi" <br /> proxy-core.allow-x-sendfile = "enable" <br /> proxy-core.backends = ( "unix:/home/testuser/GWT/gwt.socket" )<br /> proxy-core.max-pool-size = 90<br />}</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=100232016-07-08T05:12:54Zgstrauss
<ul><li><strong>Missing in 1.5.x</strong> set to <i>Yes</i></li></ul><p>The probable reason that this error occurs only occassionally for some people on Solaris is that the client request body (e.g. for POST or PUT) is stored in temporary files when the size of the request body is larger than a certain threshold (e.g. 64k). When the server is Solaris AND when client input request body is large enough to be stored in temporary files AND when the backend is FastCGI, SCGI, or proxy on a <strong>unix domain socket</strong>, AND lighttpd has been configured with server.network-backend = "solaris-sendfilev", then this sendfilev() error occurs.</p>
<p>FYI: lighttpd 1.4.40 will catch sendfilev() EAFNOSUPPORT error (which occurs if target fd is AF_UNIX socket) and will fall back to writev()</p> Lighttpd - Bug #2053: lighttpd 1.5 svn on Solaris get error messagehttps://redmine.lighttpd.net/issues/2053?journal_id=102092016-07-16T12:39:39Zgstrauss
<ul><li><strong>Status</strong> changed from <i>Need Feedback</i> to <i>Obsolete</i></li></ul>