Questions tagged [yaws]

Yaws is a high perfomance HTTP 1.1 webserver particularly well suited for dynamic-content web applications.

Yaws is a high performance HTTP 1.1 web server particularly well suited for dynamic-content web applications. Two separate modes of operation are supported:

  • Standalone mode where Yaws runs as a regular web server daemon. This is the default mode.
  • Embedded mode where Yaws runs as an embedded web server in another Erlang application.

Yaws is entirely written in Erlang, and furthermore it is a multi-threaded web server where one Erlang lightweight process is used to handle each client.

The main advantages of Yaws compared to other Web technologies are performance and elegance. The performance comes from the underlying Erlang system and its ability to handle concurrent processes in an efficient way. Its elegance comes from Erlang as well. Web applications don't have to be written in ugly ad hoc languages.

See more: https://github.com/erlyaws/yaws

193 questions
1
vote
1 answer

Industry standard for running daemonized Erlang/OTP applications?

Some of modern infrastructure components such as Yaws and CouchDB can be installed on Ubuntu with sudo apt-get install and then they can be started with {service_name} start or simply {service_name} I wonder if there are any differences between…
skanatek
  • 5,133
  • 3
  • 47
  • 75
1
vote
1 answer

How to modify the supported ciphers in yaws.conf to protect against poodlebleed

My yaws server is exposed to the poodlebleed exploit and I want to modify the supported ciphers to reduce or eliminate the risk. I have tried numerous combinations of cipher strings based on the ciphers man page. Every attempt has resulted in "Bad…
Bill Ott
  • 15
  • 4
1
vote
1 answer

erlang rfc4627 decode error

I am trying to decode json data in yaws, getting an error which is not clear to identify the issue. The Json data is { "airport": [ {"airport": "MAA"}, {"city": "Chennai"}, {"country": "India"}, {"name": "Anna International…
Rajan R.G
  • 825
  • 1
  • 7
  • 10
1
vote
0 answers

building yaws rest api

I am trying to build REST based APIs using Erlang & YAWS. My code is in github https://gist.github.com/rgrajan/11204417, getting error record arg already defined I am new to Erlang, the entire code is forked from user hiyosi, which is an erl file…
Rajan R.G
  • 825
  • 1
  • 7
  • 10
1
vote
2 answers

Strange Error occurance in Erlang rfc4627

{ok,RequestData,_} = rfc4627:decode(Arg#arg.clidata) When it match the Output of rfc4627:decode(Arg#arg.clidata) to {ok,RequestData,_} it gives a {badmatch, ....} error But I Copied the output in the error msg and matched to …
1
vote
1 answer

Yaws Cyrillic output

Can you help me please? At the web-page, I need print this: team 1 vs team 2 team 3 vs team 4 team 5 vs team 6 team 7 vs team 8 My code: first_team_write(Head) -> {ehtml, %[{text,[], f("~p vs ", [Head])}]}. % try [{p,[], [Val,…
compasses
  • 99
  • 1
  • 7
1
vote
1 answer

Yaws fails to scale on nitrogen during execution of wf:q_pl(KeyList)

I have gotten a shocking error when running Nitrogen over Yaws when executing this nitrogen function wf:q_pl(KeyList). Well when length(KeyList) approx less 40 it worked but when length(KeyList) grew to bigger values about 200, this error was thrown…
1
vote
1 answer

YAWS fronting Tomcat

Is there currently any easy way to set up a YAWS web server in front of Apache Tomcat Servlet container, similar to popular Apache httpd + Tomcat set up?
1
vote
1 answer

Making nitrogen over Yaws from github.com

I am using Ubuntu 12.04LTS with all softwares upgraded according to the software manager utility I am trying to create a nitrogen application over yaws from the nitrogenproject site using git clone https://github.com/nitrogen/nitrogen make…
1
vote
0 answers

yaws failed to start yet erlang works very well

I downloaded and installed win32 yaws-1.98 installer for my win7 and tried to start it from windows command prompt with: yaws -i. the result I got is just as right below. where I have placed @ was a simicolon. Failed to create the process…
egimaben
  • 653
  • 7
  • 22
1
vote
1 answer

Mochiweb : Reading a file as it is uploaded

I want to be able to read a file just as it is being uploaded by the user, i.e. I want to read the incoming stream of bytes from the user's browser.. Is that possible with Mochiweb? If not, where do I need to look/modify? If something else easier…
jeffreyveon
  • 13,400
  • 18
  • 79
  • 129
1
vote
1 answer

Yaws SOAP client Content-Type

I've got a sample Spring-WS WebService deployed on Tomcat. I can successfully call it with a Java client, but when I'm trying to use a Yaws client: Wsdl =…
1
vote
1 answer

How do i access MySQL with Erlang's Yaws web server

is it possible? if so, how? I know php and MySQL run together with Apache. but, how can I get access to the MySQL database using Yaws script?
Kit Fox
  • 129
  • 1
  • 5
1
vote
1 answer

how to detect mobile browser in yaws (erlang)

I know I can get the user agent from the Arg struct but how can I tell it is from a mobile browser (i.e. android or iPhone Safari), and then redirect to the appropriate mobile page?
KudoofTheQ
  • 21
  • 5
1
vote
1 answer

Nitrogen Server

I would like to know which server is the best to use for the Nitrogen Web Framework? Of the 5 listed on the site, I have already removed Inets(not recommended for production) and WebMachine. Left with only Mochweb, Yaws and Cowboy. I also noted on…
samaras
  • 235
  • 4
  • 20