Javier Maria Torres | 19 Jun 2013 09:48
Picon

Yaws vs Servlet comparison

Hi everyone,

I'd like to know if anyone in the list knows of or has done any comparison of a REST service implementation in yaws and another in servlets (using e.g. Tomcat or JBoss). My development experience is that yaws developmen in this case is dead easy compared to the servlet specification, but I miss some kind of performance measurements.

Thanks a lot, and regards,

Javier
------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Martin Dimitrov | 3 Jun 2013 16:33
Picon

Server Side Includes performance

Hello,

I am considering to use SSI (http://yaws.hyber.org/ssi.yaws) on the
entire webpages to do localization of the User Interface. Some pages are
large (~50KB). Would SSI degrade performance significantly?

Thank you,

Martin

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite
It's a free troubleshooting tool designed for production
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://p.sf.net/sfu/appdyn_d2d_ap2
Alexander Veit | 25 May 2013 11:00
Picon

License of the Yaws logo

Hi,

what license does apply to the Yaws logo (http://yaws.hyber.org/yaws.eps)?

The website http://yaws.hyber.org/ does not say anything about it.

--

-- 
Cheers,
Alex

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
systemio systemio | 23 May 2013 16:52
Picon

omit yaws extension


Hi guys,

what is the true way to omit .yaws extension?
f.e. www.site.com/page redirects to www.site.com/page.yaws
sorry if the similar topic already exists

--
Alex

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Jari Hellman | 21 May 2013 10:55
Picon

yaws_pam.erl in yaws-1.96


Hi,

A simple web application using Yaws in daemon mode with authentication
via PAM stopped working after upgrading from 1.94 to 1.96 : 
browser's login page keeps looping although correct login.  

Comparing Yaws sources revealed that yaws_pam.erl had one change made 
between those releases.  A simple test using yaws_pam.beam from 
release 1.94 with everything else from 1.96 verified the location 
of the problem - everything worked as usual with old yaws_pam. 

Committer: Claes Wikstrom <klacke@...>  2012-11-09 13:06:48
SHA1 ID: 05be6e63a342fbfbcc8a5e9b92453b5d631df872
"handle case with DOS attack towards pam login with embedded NUL chars
in username or password. The protocol cannot handle NUL chars and Yaws
dies" 

.....
 auth(User, Password) ->
-    gen_server:call(?MODULE, {auth, User, Password}, infinity).
+    case has_nul(User) or has_nul(Password) of
+        false ->
+            try  gen_server:call(pam_server, {auth, User, Password}, 10000) of
+                 Ret ->
+                    Ret
+            catch _:_ ->
.....

"try  gen_server:call(pam_server, ..." will allways fail as pam_server is
something that can not be found anywhere.

After recompiling 1.96 with modified yaws_pam.erl, changing 'pam_server' 
to '?MODULE' as in 1.94 source, all is working as before.

I could not find any later activity with this module at github.

  - Jari

------------------------------------------------------------------------------
Try New Relic Now & We'll Send You this Cool Shirt
New Relic is the only SaaS-based application performance monitoring service 
that delivers powerful full stack analytics. Optimize and monitor your
browser, app, & servers with just a few lines of code. Try New Relic
and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_may
Nico Kruber | 11 May 2013 02:36
Picon

Encoding comments for Erlang/master

Some of the modules contain non-UTF8 characters and therefore need the
Latin-1 encoding comment in order to compile with Erlang/master
(or need to be converted to UTF-8)

The following adds the correct encoding headers to the affected files:

for file in yaws_xmlrpc.erl yaws_rpc.erl yaws_ls.erl yaws_jsonrpc.erl yaws_exhtml.erl ; do \
  sed -i -e "1i %% -*- coding: Latin-1 -*-" src/$file ; \
done

Nico

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
Martin Dimitrov | 4 Apr 2013 16:21
Picon

Performance testing with OpenSTA

Our app is using embedded YAWS server. I played around to do performance tests with OpenSTA. The setup is 30 virtual users, all pass through the test at once. OpenSTA is on virtual (VMWare) Windows XP machine and the Erlang app on a Windows 8 machine which has 4 cores and 8GB of RAM.


OpenSTA reports 5 seconds response time for 10-15 requests but our own in-app performance measurement shows nothing even close - the longest request takes 200 milliseconds and it measures the whole message handing by calling now/0 at entrance and timer:now_diff/1 before returning.

I tried to profile YAWS with eprof. Firstly, I saw 97% of the time was spent in yaws_logger module. I turned access_log to false and now all YAWS modules spend 0% according to eprof. But there is no improvement in the response time according to OpenSTA.

I know this question is too vague but still doesn't hurt to ask :)

Has anyone experienced something similar?

Thanks for taking time to look at this.

Martin
------------------------------------------------------------------------------
Minimize network downtime and maximize team effectiveness.
Reduce network management and security costs.Learn how to hire 
the most talented Cisco Certified professionals. Visit the 
Employer Resources Portal
http://www.cisco.com/web/learning/employer_resources/index.html
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Martin Dimitrov | 1 Apr 2013 10:29
Picon

Call yaws_api:websocket_send/2 from within the worker

Hello,

In our app, we have a gen_server that contains in its state a list of
Pids of all websockets workers. The workers have state. When something
triggers in the app, we want to notify interested in this event workers.
Their state determines where should a message to the client be sent.

So how can we accomplish this? If I call gen_server:cast/2 for each pid,
how can the worker pick the message? On the updated Websockets page in
the documentation, I don't see an option to override handle_cast.

Thank you,

Martin

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
ct | 1 Apr 2013 09:42
Picon

Yaws and WebSockets with auth not working

HI all,

I cannot find the way to make the Yaws's WebSockets example to work correctly if a .yaws_auth file is added to the docroot directory to enable the HTTP basic authorization. The .yaws_auth simply contains the following line

{"demo", "demo"}.


The following line is added to the log file localhost.8080.auth on each attempt.
127.0.0.1 [01/Apr/2013:14:22:34 +0800] localhost:8080 "/websockets_example_endpoint.yaws?extversion=true&keepalive=true&timeout=5000" 401 realm=

Removed the .yaws_auth the websockets example works perfectly.

My installation has Yaws 1.96 and Erlang R16B for windows xp

BR,
vincent
------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Daniel Fahlke | 29 Mar 2013 23:31
Gravatar

php fcgi via socket

Hi all,

Iam currently working on my configuration for using php with fcgi.
The php-fpm allows listening on a socket, so i wonder if yaws does support connecting to a fcgi server via socket. The documentation of the manual does only cover the host:port way.
------------------------------------------------------------------------------
Own the Future-Intel(R) Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest. Compete 
for recognition, cash, and the chance to get your game on Steam. 
$5K grand prize plus 10 genre and skill prizes. Submit your demo 
by 6/6/13. http://altfarm.mediaplex.com/ad/ck/12124-176961-30367-2
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Chris Hall | 27 Mar 2013 12:14
Picon

yaws-wiki, yaws-mail on Ubuntu Precise

Hello,

Over 10 years ago, I ran ejabberd and fooled with erlang a bit, but now I am getting serious about it for a project I want to do -- Freedom Box.

Anyway, while my servers run Debian Squeeze, my laptop has Ubuntu Precise, and after installing Yaws, yaws-chat, yaws-mail, yaws-wiki and yapps, I decided to try them out.

Most importantly, while the https: process seems to start, but when I try to access it I get:

In the browser:

Unable to connect

          Firefox can't establish a connection to the server at localhost:8443.

In the error log file:

=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Yapp starting but Yaws not ready - waiting 500 ms
=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Yaws: Listening to 0.0.0.0:8443 for <1> virtual servers:
 - https://localhost:8443 under /usr/share/yaws

=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Yaws: Listening to 0.0.0.0:8080 for <1> virtual servers:
 - http://localhost:8080 under /usr/share/yaws

=INFO REPORT==== 26-Mar-2013::16:24:58 ===
Starting yapp

=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
SSL: 1112: error:[] /etc/yaws/yaws-key.pem
  [{ssl_connection,init_private_key,5},
   {ssl_connection,ssl_init,2},
   {ssl_connection,init,1},
   {gen_fsm,init_it,6},
   {proc_lib,init_p_do_apply,3}]


=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
yaws: Failed to accept - terminating: {error,ekeyfile}

=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
Accept proc died, terminate gserv
=ERROR REPORT==== 26-Mar-2013::16:25:11 ===
yaws: FATAL gserv died shutdown

/etc/yaws/yaws-key.pem exists as installed.

As for the chat, wiki and mail apps, after fooling around a bit, the only way I could get them even to run was to make localhost.conf look like:

<server localhost>
    port = 8080
    listen = 0.0.0.0
    docroot = /usr/share/yaws
    dir_listings = true
    arg_rewrite_mod = yaws_vdir

    <opaque>
         vdir = "/chat/ /usr/share/yaws-chat/"
         vdir = "/mail/ /usr/share/yaws-mail/"
         vdir = "/wiki/ /var/lib/yaws-wiki/"
    </opaque>

</server>

The results:

* yaws-chat seems to work ok.

* yaws-wiki:
In browser:

Internal error, yaws code crashed


yaws code at/var/lib/yaws-wiki/createNewPage.yaws:3 had the following err: enoent
In error log file:
=ERROR REPORT==== 25-Mar-2013::19:51:31 ===
Failed to read/ssi file ["/var/lib/yaws-wiki","//wiki/",
                         "/WikiPreferences.files/template_info.html"]

 - File exists, at /var/lib/yaws-wiki/WikiPreferences.files/template_info.html
- /var/lib/yaws-wiki, all it subdirectories and files are owned by yaws:yaws (I made it that way just to make sure.)


* yaws-mail:

In browser:

Internal error, yaws code crashed


ERROR erlang code crashed: File: /usr/share/yaws-mail/mail.yaws:1 Reason: "No reply from session manager" Req: {http_request,'GET',{abs_path,"/mail/mail.yaws"},{1,1}} Stack: [{mail,req,1}, {mail,display_login,2}, {m5,out,1}, {yaws_server,deliver_dyn_part,8}, {yaws_server,aloop,3}, {yaws_server,acceptor0,2}, {proc_lib,init_p_do_apply,3}]
In error log file:

=INFO REPORT==== 25-Mar-2013::21:33:33 ===
Yaws webmail: Using config file /etc/mail/yaws-webmail.conf


Thanks for your time!  I really appreciate it.

------------------------------------------------------------------------------
Own the Future-Intel&reg; Level Up Game Demo Contest 2013
Rise to greatness in Intel's independent game demo contest.
Compete for recognition, cash, and the chance to get your game 
on Steam. $5K grand prize plus 10 genre and skill prizes. 
Submit your demo by 6/6/13. http://p.sf.net/sfu/intel_levelupd2d
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@...
https://lists.sourceforge.net/lists/listinfo/erlyaws-list

Gmane