On Fri, Mar 19, 2010 at 17:15, Fabio Mascarenhas <mascaren...@acm.org> wrote:
> Sorry, I just copied applied a patch from a forked version in github,
> and forgot that luaL_tostring does not exist, and just ignored the
> warning.

> I changed it to use luaL_checkstring and released 1.3.1, please
> reinstall wsapi-fcgi.

Thanks! Fix confirmed.

However, I have one more problem.

Newer WSAPI emits "Transfer-Encoding: chunked" header.

Some other tool on my stack (I suspect it is nginx, investigating now)
emits the same header. (Or could it be that WSAPI emits this header
twice?)

Some HTTP clients (like Perl HTTP library) get confused and die when
they see two content-type headers.

That is an issue for me, as I use GET command to test my setup.

See details below. (Note I replaced some unrelated text there with
"myhost", so content sizes may not match.)

I suspect I should also file a bug to Perl HTTP library developers
(unless standard forbids duplicate Transfer-Encoding headers). Can
anyone point me in the right direction where I should send a
bug-report?

But, anyway, I can't wait until Perl fixes would get into Ubuntu distro.

Alexander.

$ telnet myhost 80
Trying 172.16.129.130...
Connected to myhost.
Escape character is '^]'.
GET / HTTP/1.1
Host: myhost

HTTP/1.1 200 OK
Server: nginx/0.7.62
Date: Fri, 19 Mar 2010 14:53:38 GMT
Content-Type: text/xml <-- FROM MY HANDLER
Transfer-Encoding: chunked <-- FROM NGINX?
Connection: keep-alive <-- FROM NGINX?
Expires: Thu, 01 Jan 1970 00:00:00 GMT <-- FROM MY HANDLER
Cache-Control: no-store, no-cache, must-revalidate <-- FROM MY HANDLER
Cache-Control: post-check=0, pre-check=0 <-- FROM MY HANDLER
Last-Modified: Fri, 19 Mar 2010 14:53:38 GMT <-- FROM MY HANDLER
Pragma: no-cache <-- FROM MY HANDLER
Transfer-Encoding: chunked <-- FROM WSAPI

1c
<service>myhost</service>
0

$ GET http://myhost -e
Cache-Control: no-store, no-cache, must-revalidate
Cache-Control: post-check=0, pre-check=0
Connection: close
Date: Fri, 19 Mar 2010 15:08:07 GMT
Pragma: no-cache
Server: nginx/0.7.62
Content-Type: text/xml
Expires: Thu, 01 Jan 1970 00:00:00 GMT
Last-Modified: Fri, 19 Mar 2010 15:08:07 GMT
Client-Aborted: die
Client-Date: Fri, 19 Mar 2010 15:08:07 GMT
Client-Peer: 172.16.129.130:80
Client-Response-Num: 1
Client-Transfer-Encoding: chunked
Client-Transfer-Encoding: chunked
X-Died: Can't handle transfer encoding 'chunked,chunked' at
/usr/share/perl5/Net/HTTP/Methods.pm line 438.

_______________________________________________
Kepler-Project mailing list
Kepler-Project@lists.luaforge.net
http://lists.luaforge.net/cgi-bin/mailman/listinfo/kepler-project
http://www.keplerproject.org/

Reply via email to