Who's at the Hackathon?
Folks, The httpd table now has: Jeff Trawick Jean-Frederic Leclere Stefan Fritsch Rainer Jung and myself Who else is at the conference? Anybody joining tomorrow? Rainer brought a Euro power strip, so this table's going to be right popular. (: S. -- scte...@apache.orghttp://www.temme.net/sander/ PGP FP: FC5A 6FC6 2E25 2DFD 8007 EE23 9BB8 63B0 F51B B88A View my availability: http://tungle.me/sctemme
Re: Who's at the Hackathon?
On 07/11/2011 09:22, Sander Temme wrote: Folks, The httpd table now has: Jeff Trawick Jean-Frederic Leclere Stefan Fritsch Rainer Jung and myself I'll be around soonish Who else is at the conference? Anybody joining tomorrow? Rainer brought a Euro power strip, so this table's going to be right popular. (: S.
Re: Who's at the Hackathon?
On Nov 7, 2011, at 9:22 AM, Sander Temme wrote: Folks, The httpd table now has: Jeff Trawick Jean-Frederic Leclere Stefan Fritsch Rainer Jung and myself Who else is at the conference? Anybody joining tomorrow? I'll be around tomorrow (at the board meeting today). …Roy
Re: svn commit: r1197838 - /httpd/httpd/trunk/modules/lua/lua_request.c
On Sat, 5 Nov 2011, cove...@apache.org wrote: Author: covener Date: Sat Nov 5 00:16:36 2011 New Revision: 1197838 URL: http://svn.apache.org/viewvc?rev=1197838view=rev Log: provide ap_escape_html as r:escape_html() Modified: httpd/httpd/trunk/modules/lua/lua_request.c Modified: httpd/httpd/trunk/modules/lua/lua_request.c URL: http://svn.apache.org/viewvc/httpd/httpd/trunk/modules/lua/lua_request.c?rev=1197838r1=1197837r2=1197838view=diff == --- httpd/httpd/trunk/modules/lua/lua_request.c (original) +++ httpd/httpd/trunk/modules/lua/lua_request.c Sat Nov 5 00:16:36 2011 @@ -208,6 +208,15 @@ static int req_construct_url(lua_State * lua_pushstring(L, ap_construct_url(r-pool, name, r)); return 1; } + +/* wrap ap_escape_html r:escape_html(String) */ +static char * req_escape_html(lua_State *L) +{ +request_rec *r = ap_lua_check_request_rec(L, 1); +const char *s = luaL_checkstring(L, 2); +lua_pushstring(L, ap_escape_html(r-pool, s)); +return 1; +} /* BEGIN dispatch mathods for request_rec fields */ Returning 1 in a function returning 'char *' is wrong. I suspect the prototype should be 'int'?
Re: prefetch proxy
On Tue, Nov 1, 2011 at 1:23 PM, Jim Jagielski j...@jagunet.com wrote: In mod_proxy_http we have: /* Prefetch MAX_MEM_SPOOL bytes * * This helps us avoid any election of C-L v.s. T-E * request bodies, since we are willing to keep in * memory this much data, in any case. This gives * us an instant C-L election if the body is of some * reasonable size. */ temp_brigade = apr_brigade_create(p, bucket_alloc); do { status = ap_get_brigade(r-input_filters, temp_brigade, AP_MODE_READBYTES, APR_BLOCK_READ, MAX_MEM_SPOOL - bytes_read); if (status != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, status, r-server, proxy: prefetch request body failed to %pI (%s) from %s (%s), p_conn-addr, p_conn-hostname ? p_conn-hostname: , c-remote_ip, c-remote_host ? c-remote_host: ); return HTTP_BAD_REQUEST; } apr_brigade_length(temp_brigade, 1, bytes); bytes_read += bytes; However, I see times when status could be APR_EAGAIN. IMO, it doesn't make sense to error out here in that case. Right? By chance is this over SSL? (Just wondering what input filters you might have.)
Re: Who's at the Hackathon?
Also around. On Mon, Nov 7, 2011 at 1:17 PM, Roy T. Fielding field...@gbiv.com wrote: On Nov 7, 2011, at 9:22 AM, Sander Temme wrote: Folks, The httpd table now has: Jeff Trawick Jean-Frederic Leclere Stefan Fritsch Rainer Jung and myself Who else is at the conference? Anybody joining tomorrow? I'll be around tomorrow (at the board meeting today). …Roy
Re: svn commit: r1197838 - /httpd/httpd/trunk/modules/lua/lua_request.c
Returning 1 in a function returning 'char *' is wrong. I suspect the prototype should be 'int'? thanks, tripped on this myself and fixed in r1199028
Re: prefetch proxy
SSL isn't involved, no. On Nov 7, 2011, at 4:28 PM, Jeff Trawick wrote: On Tue, Nov 1, 2011 at 1:23 PM, Jim Jagielski j...@jagunet.com wrote: In mod_proxy_http we have: /* Prefetch MAX_MEM_SPOOL bytes * * This helps us avoid any election of C-L v.s. T-E * request bodies, since we are willing to keep in * memory this much data, in any case. This gives * us an instant C-L election if the body is of some * reasonable size. */ temp_brigade = apr_brigade_create(p, bucket_alloc); do { status = ap_get_brigade(r-input_filters, temp_brigade, AP_MODE_READBYTES, APR_BLOCK_READ, MAX_MEM_SPOOL - bytes_read); if (status != APR_SUCCESS) { ap_log_error(APLOG_MARK, APLOG_ERR, status, r-server, proxy: prefetch request body failed to %pI (%s) from %s (%s), p_conn-addr, p_conn-hostname ? p_conn-hostname: , c-remote_ip, c-remote_host ? c-remote_host: ); return HTTP_BAD_REQUEST; } apr_brigade_length(temp_brigade, 1, bytes); bytes_read += bytes; However, I see times when status could be APR_EAGAIN. IMO, it doesn't make sense to error out here in that case. Right? By chance is this over SSL? (Just wondering what input filters you might have.)
Re: Who's at the Hackathon?
Will be around tues... On Nov 7, 2011, at 9:22 AM, Sander Temme wrote: Folks, The httpd table now has: Jeff Trawick Jean-Frederic Leclere Stefan Fritsch Rainer Jung and myself Who else is at the conference? Anybody joining tomorrow? Rainer brought a Euro power strip, so this table's going to be right popular. (: S. -- scte...@apache.orghttp://www.temme.net/sander/ PGP FP: FC5A 6FC6 2E25 2DFD 8007 EE23 9BB8 63B0 F51B B88A View my availability: http://tungle.me/sctemme