Not spawn new processes based on 'request.path'?

4 views
Skip to first unread message

TJ

unread,
Dec 9, 2009, 7:22:43 PM12/9/09
to Phusion Passenger Discussions
I'm having a problem where Passenger is spawning several processes
when a user gets to submit my registration process, and so a lot of
users are getting duplicate records because of that.

Is that a way that I can choose not to spawn new processes based on
"request.path" the user might be on? For instance, not spawn any new
processes if the user is on "/registration/new" or "/registration/
create" for example.

Thanks a lot.

TJ

TJ

unread,
Dec 11, 2009, 7:07:30 PM12/11/09
to Phusion Passenger Discussions
I can't believe that no one knows (not even the authors) how to access
the path of the current page through Phusion... Is that really
impossible?

Thanks.

Stephen

unread,
Dec 12, 2009, 2:20:10 PM12/12/09
to Phusion Passenger Discussions
Honestly, it doesn't sound like a passenger problem as much as
something to do with your app.

Passenger is spawns threads as needed and isn't something your app
should have to care about to function correctly.

Perhaps you could explain your setup a little more? maybe your doing
some sort of caching/memoization thats not coherent between all the
threads? just a guess without more info.

Hongli Lai

unread,
Dec 12, 2009, 6:14:26 PM12/12/09
to phusion-passenger
On Fri, Dec 11, 2009 at 4:07 PM, TJ <sk8t...@yahoo.com> wrote:
> I can't believe that no one knows (not even the authors) how to access
> the path of the current page through Phusion... Is that really
> impossible?

It is not possible right now. But such an option would only be a
workaround for the real problem. Shouldn't your application check for
duplicates before committing the registration?

--
Phusion | The Computer Science Company

Web: http://www.phusion.nl/
E-mail: in...@phusion.nl
Chamber of commerce no: 08173483 (The Netherlands)
Reply all
Reply to author
Forward
0 new messages