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
0
votes
0 answers

yaws_log message count is continue growing

I embedded YAWS in my application at production environment, and I found the yaws_log message count is continue growing (from 08/Dec/2016 ). Observer shows the yaws_log process Memory size is 2326160312, and the Message count is 799501 The…
0
votes
1 answer

Yaws - start of server from current directory

I know that can add set of docroot in yaws.conf but this not always convenient. Is exist way to start of server from current directory with yaws without modifying configuration file?
user4651282
0
votes
1 answer

Yaws is not loading yaws_dynopts module

I am running Yaws server version 2.0.2 with Erlang/OTP 18 [erts-7.3] on ubuntu 16.04 and installed it using apt. Now when i try to run this example i get undef yaws_dynopts random_seed. I have verified that module yaws_dynopts is not loaded OR…
Kuna Prime
  • 265
  • 3
  • 8
0
votes
1 answer

exception exit: "cannot load yaws"

I have been trying to embed yaws into an erlang application but no matter what I do I get this exception thrown out ** exception exit: "cannot load yaws" in function yaws_api:embedded_start_conf/4 (yaws_api.erl, line 2598) in call from…
user4672604
0
votes
1 answer

Yaws process doesn't send 'DOWN' message to a connected node

I connected Node A (which contains a gen_server that monitors yaws processes) to a Node B which runs YAWS. gen_server's handle_info does receive 'EXIT' and 'DOWN' messages from remote nodes but not particularly from yaws processes. However when I…
user4672604
0
votes
1 answer

How can I trap process exits in yaws?

A separate Erlang chat server stores all PIDs in a mnesia table and groups them under a Room ID so when a user sends a message, A gen_server sends the message to all processes under that Room ID. so far everything works great but the problem…
user4672604
0
votes
1 answer

What is the difference between chunk and non-chunk streaming in Erlang/Yaws

What is the difference between yaws_api:stream_process_deliver(Socket, IoList) and yaws_api:stream_process_deliver_chunk(Socket, IoList)?
user4672604
0
votes
1 answer

How to use yaws_api:stream_process_deliver(Socket, IoList) properly

I need to stream database data/string to client using Erlang/Yaws. I found this documentation to achieve this but this example uses open_port to send data. this is the example from [http://yaws.hyber.org/stream.yaws][1] out(A) -> %% Create a…
user4672604
0
votes
1 answer

Data streaming using streamcontent_from_pid in Yaws/Erlang

I desire to stream data with yaws to my comet application, I have read and worked around to understand it but the example from yaws seems to be a little complicated for me (I am new to Erlang). I just cannot get my head around... here is the example…
user4672604
0
votes
1 answer

Installing yaws On wondows7

I need help, I installed yaws server on windows 7 but when I run yaws -i from command prompt I get the error Failed to create the process entire, Tried to invoke erl.exe then followed by a series of yaws paths and finally says make sure you have erl…
0
votes
0 answers

Error installing Yaws server on Windows 7

When installing Yaws, I get below error reports: Cannot Open "c:/program Files/Yaws-2.0.2/logs/localhost.auth" Cannot Open "c:/program Files/Yaws-2.0.2/logs/localhost.access" Does anyone have any idea what the problem might be?
0
votes
1 answer

How to protect files - accessing from unauthorized user in Yaws server

I have thousands of files are saved in Yaws media server but files can be accessed by typing URL "like www.domainname.com/images/1.jpg", I want to block user to accessing files from URL - only authorized users can access files.
Parveen Singh
  • 21
  • 1
  • 2
  • 3
0
votes
1 answer

YAWS webserver - how to know if successful download?

I let people download files using HTTP-GET from Yaws. I have implemented as it is done in yaws_appmod_dav.erl, and it works fine. case file:read(Fd,PPS) of {ok,Data} when size(Data) ?DEBUG("only…
mattias
  • 870
  • 5
  • 18
0
votes
1 answer

Yaws SSL: Decode Error

I've tried running my yaws Web-server (on digital-ocean) by changing my webpage from http://XXX.XX.XX to https://XXX.XX.XX on the Erlang shell, i get SSL accept failed: {tls_alert, "decode error"} the yaws.conf seems to come with a default key and…
user3847136
  • 47
  • 1
  • 6
0
votes
1 answer

Changes in YAWS takes a while to take effect

When I modify a .yaws file it take a few (5, 10) seconds for changes to take effect, it it normal and Do I have to keep terminal open while I use YAWS server?
user4672604