librelist archives

« back to archive

Mongrel2 v1.7.3 Out, Fix For Handlers, Uploads

Mongrel2 v1.7.3 Out, Fix For Handlers, Uploads

From:
Zed A. Shaw
Date:
2011-06-12 @ 05:24
I put up Mongrel2 v1.7.3 just now with some important fixes:

http://mongrel2.org/home#download

1. Handlers weren't quite loaded right such that if you had two routes
pointed at the same handler it'd fail in weird ways.  It was some dumb
"logic" I wrote that wasn't right at all.  Now it is.

2. sshirokov noticed that the oversize uploads didn't have the right
chmod on them, so he wrote a feature to force the mode where you set
upload.temp_store_mode="0666" to make it the right mode.  It defaults to
0600.

There's also a fix or two for some other things, like allowing a
mongrel2 configuration that has nothing in it, and a stray memory leak I
hadn't caught before.

Grab this latest one and let me know if you run into anything else.

-- 
Zed A. Shaw
http://zedshaw.com/

Re: [mongrel2] Mongrel2 v1.7.3 Out, Fix For Handlers, Uploads

From:
Nicolas Martyanoff
Date:
2011-06-12 @ 18:59
Runs ok here.

I updated the archlinux package¹.

[1] http://aur.archlinux.org/packages.php?ID=39307

Regards,

-- 
Nicolas Martyanoff
   http://codemore.org
   khaelin@gmail.com

Re: [mongrel2] Mongrel2 v1.7.3 Out, Fix For Handlers, Uploads

From:
Dalton Barreto
Date:
2011-06-12 @ 17:37
2011/6/12 Zed A. Shaw <zedshaw@zedshaw.com>:
> I put up Mongrel2 v1.7.3 just now with some important fixes:
>
> http://mongrel2.org/home#download
>
> 1. Handlers weren't quite loaded right such that if you had two routes
> pointed at the same handler it'd fail in weird ways.  It was some dumb
> "logic" I wrote that wasn't right at all.  Now it is.
>
> 2. sshirokov noticed that the oversize uploads didn't have the right
> chmod on them, so he wrote a feature to force the mode where you set
> upload.temp_store_mode="0666" to make it the right mode.  It defaults to
> 0600.
>
> There's also a fix or two for some other things, like allowing a
> mongrel2 configuration that has nothing in it, and a stray memory leak I
> hadn't caught before.
>
> Grab this latest one and let me know if you run into anything else.
>

Cool! Gentoo ebuilds[1] are ready now for 1.7.2 and 1.7.3.

Writing this I discovered that mongrel2 does not compile with "make
-j<N>" where N > 1. Maybe the makefile is written in a way that makes
impossible to the make command to manage the background compile jobs.
I had to compile without -j option.

I think that the problem could be in the filters/config_modules
makefiles, since mongrel2-1.6 compiles fine with -j3.

Thanks for the new release! Already running on my local machine and
produtcion server.

[1] https://github.com/daltonmatos/gentoo-overlay

-- 
Dalton Barreto
http://daltonmatos.wordpress.com
http://wsgid.com