fruity | 4 Apr 2010 07:51

Re: yaws, fastcgi and django CGI failure: {send_to_application_server_failed, timeout}


Just to close the thread :)

I applied the patch and it worked, afterward I upgraded to 1.88 and works
perfectly.

Thanks a lot and sorry for the ages passed from the patch release.

> Steve Vinoski wrote:
>> Just checking, had any luck with the patch?
>>
>> --steve
>>
>> On Mon, Mar 1, 2010 at 10:53 AM, Steve Vinoski <vinoski@...> wrote:
>>
>>>
>>> On Mon, Mar 1, 2010 at 10:03 AM, fruity <fruity@...> wrote:
>>>
>>>> Hello,
>>>>
>>>> thanks for the reply
>>>>
>>>> Steve Vinoski ha scritto:
>>>>> When you say "latest yaws" do you mean the latest released version,
>>>>> or
>>>> the
>>>>> latest version of the sources from github?
>>>> latest released stable version, I am not so brave...
>>>>
>>>>> Unfortunately it looks like the code has a bug where it uses
(Continue reading)

Steve Vinoski | 4 Apr 2010 17:30
Picon
Gravatar

Re: yaws, fastcgi and django CGI failure: {send_to_application_server_failed, timeout}

On Sun, Apr 4, 2010 at 1:51 AM,  <fruity@...> wrote:
>
> Just to close the thread :)
>
> I applied the patch and it worked, afterward I upgraded to 1.88 and works
> perfectly.
>
> Thanks a lot and sorry for the ages passed from the patch release.

Great, thanks for closing the thread.

1.88 also contains some other FCGI improvements, including faster
handling of small TCP packets across the connection and elimination of
a bug where an FCGI packet containing a 0-length field would result in
a call to gen_tcp:recv for 0 bytes, which means recv all remaining
bytes, which definitely wasn't right. Both of these could have
resulted in significant delays for FCGI-based applications.

--steve

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Wes James | 6 Apr 2010 21:36
Picon
Gravatar

yaws 1.88 and latest nitrogen web framework on os x

Has anyone here been able to get nitrogen to work with yaws 1.88 on os x?

I can get yaws to work fine alone or nitrogen and inets, but with yaws
I get this startup, but no access to the site:

./quickstart_yaws.sh
Using Yaws in directory /usr/local/src/yaws.
Creating link to nitrogen support files...
Starting Nitrogen on Yaws...
Erlang R13B04 (erts-5.7.5) [source] [smp:4:4] [rq:4] [async-threads:0]
[hipe] [kernel-poll:false]

Eshell V5.7.5  (abort with ^G)
(nitrogen@...)1>
=INFO REPORT==== 6-Apr-2010::13:29:30 ===
    application: quickstart_yaws
    exited: {shutdown,{quickstart,start,[normal,[]]}}
    type: temporary

thx,

-wes

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
(Continue reading)

Thomas O'Dowd | 7 Apr 2010 12:58
Favicon

garbage collection process_options

Hi all,

We've run into a problem where by if a lot of clients keep connections
open for a long time using keepalive and a lot of data passes through
the connection, the yaws erlang processes get rather large. We've had
over 3GB in production on some occasions. This is rather undesired so
I've taken the liberty of adding a garbage collection tuning knob to the
yaws configuration. The default configuration is the current behavior
which is more than likely the desired behavior for most.

I put the change on its own branch called "process_options"

> git pull git@...:tpodowd/yaws.git process_options

(I think this is the git syntax for pulling the branch. New to git)

process_options takes the same garbage collection arguments as the
erlang:spawn_opt/4 function.

Examples would be:

# Default behavior. Default garbage collection.
process_options: "[]"

# Specifically set a different fullsweep_after value. See spawn_opt/4 
# for more details.
process_options: "[{fullsweep_after, 20}]"

Only the two options fullsweep_after and min_heap_size have any effect
and any other options are ignored.
(Continue reading)

Wes James | 8 Apr 2010 23:53
Picon
Gravatar

nitrogen and yaws - http and https

anyone here gotten yaws+nitrogen+https to work?  I can get http to
work fine, but when I try to configure https, it just spins in the
browser.  Basically I have:

       SSL = #ssl {
       keyfile = nitrogen:get_keyfile(),
       certfile = nitrogen:get_certfile(),
       depth = 0
       },
       SC2 = #sconf {
               docroot = nitrogen:get_wwwroot(),
               ssl = SSL,
               port=nitrogen:get_sslport(),
               appmods = [{"/web", wf_yaws}],
               listen = nitrogen:get_ip()
       },

in the nitrogen_yaws_app.erl

Any other pointers as to how to do this?

thx,

-wes

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
(Continue reading)

Wes James | 9 Apr 2010 00:53
Picon
Gravatar

remove .yaws from pages

Is there a way to run "page.yaws" as just "page" (that is remove the .yaws)?

thx,

-wes

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Steve Vinoski | 9 Apr 2010 16:44
Picon
Gravatar

Re: remove .yaws from pages

On Thu, Apr 8, 2010 at 6:53 PM, Wes James <comptekki@...> wrote:
> Is there a way to run "page.yaws" as just "page" (that is remove the .yaws)?

Maybe you could use arg rewrite to do this. See section 7.1.2 of

http://yaws.hyber.org/yaws.pdf

for more info (in fact the example there is similar to what you want, I think).

--steve

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Wes James | 9 Apr 2010 17:33
Picon
Gravatar

Re: remove .yaws from pages

On Fri, Apr 9, 2010 at 8:44 AM, Steve Vinoski <vinoski@...> wrote:
> On Thu, Apr 8, 2010 at 6:53 PM, Wes James <comptekki@...> wrote:
>> Is there a way to run "page.yaws" as just "page" (that is remove the .yaws)?
>
> Maybe you could use arg rewrite to do this. See section 7.1.2 of
>
> http://yaws.hyber.org/yaws.pdf
>
> for more info (in fact the example there is similar to what you want, I think).
>
> --steve
>

thx - I'll look at that.

-wes

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
Claes Wikström | 12 Apr 2010 09:43
Favicon

Re: garbage collection process_options

Thomas O'Dowd wrote:
> Hi all,
> 
> We've run into a problem where by if a lot of clients keep connections
> open for a long time using keepalive and a lot of data passes through
> the connection, the yaws erlang processes get rather large. We've had
> over 3GB in production on some occasions. This is rather undesired so
> I've taken the liberty of adding a garbage collection tuning knob to the
> yaws configuration. 

Nice, patch merged to master. Thanks.

> I put the change on its own branch called "process_options"
> 
>> git pull git@...:tpodowd/yaws.git process_options
> 
> (I think this is the git syntax for pulling the branch. New to git)
> 

Aren't we all!

# git pull git://github.com/tpodowd/yaws.git process_options

Does it.

/klacke

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
(Continue reading)

Claes Wikström | 12 Apr 2010 12:36
Favicon

Re: run yaws on port < 1024 non root

Wes James wrote:

> 
> On os x this is how this can be done:

Thanks, added to the docs.

/klacke

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

Gmane