Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Commits on Oct 3, 2015
  1. @kristofferkoch @vinoski

    Use binary:compile_pattern for multipart messages

    kristofferkoch authored vinoski committed
    Remove the (elegant) bm_start and bm_find in favor of
    binary:compile_pattern and binary_match to find multipart
    boundaries. My simple measurements shows that this improves
    performance about 33 times for multipart boundary searching.
  2. @kristofferkoch
Commits on Oct 1, 2015
  1. @vinoski

    Fix #239: return 400 for missing Host header

    vinoski authored
    If the global conf variable pick_first_virthost_on_nomatch is set to
    false and a request has no Host header or has multiple Host headers,
    return 400 Bad Request. Add new tests for this scenario and modify the
    docs where needed.
    Note that pick_first_virthost_on_nomatch is true by default. The way
    Yaws behaves when pick_first_virthost_on_nomatch is true is
    unchanged. If you want the 400 Bad Request behavior, you must change
    your configuration to set pick_first_virthost_on_nomatch to false.
  2. @capflam

    Fix error in yaws_log_file_h introduced by the PR #241

    capflam authored
    The pull request #241 tried to fix the commit 0d61db6. But a bug was always
    here. This patch really fixes the bug and a unit test was added to be sure.
  3. @vinoski

    Merge pull request #241 from weisslj/fix_yaws_log_file_h_error

    vinoski authored
    Fix error in yaws_log_file_h (cf. 0d61db6)
Commits on Sep 30, 2015
  1. @weisslj
  2. JIT compile error in yapp docs. yaws file

    Klacke authored
Commits on Sep 29, 2015
  1. @capflam
  2. @capflam

    Fix yaws_log_file_h module for Erlang release 18.1

    capflam authored
    In 18.1, the internal state of the error_logger_file_h module has
    changed. Because yaws_log_file_h module is a wrapper around it, we must handle
    all versions, pre-18.1 and post-18.1.
    Fix #240
Commits on Sep 7, 2015
  1. @vinoski
Commits on Aug 27, 2015
  1. @capflam
  2. Include URL to travis

    Klacke authored
Commits on Aug 26, 2015
  1. @capflam
  2. @capflam
  3. @capflam

    Fix some small bugs in Makefiles

    capflam authored
    * src/ yaws.erl is used to generate mime_types.erl so it must be
      compiled first.
    * test/t12/ Add missing file in EXTRA_DIST
  4. @capflam

    Retrieve debug env variable before creating the global config record

    capflam authored
    This is required to set cache_refresh_secs to 0 when debug is set to true and
    when Yaws is started in embedded mode. Fixes #221.
  5. @vinoski

    Add new test t13 for max_connections fixes

    vinoski authored
    Added test/t13 rather than fitting the test into an existing test
    directory because max_connections is a global setting in yaws.conf,
    and so it would affect all other tests in the same directory.
  6. @vinoski

    Catch a einval badmatch triggered by yaws:setopts/3

    Andrei Neculau authored vinoski committed
    inet/ssl:setopts would return {error, einval} when the socket is closed.
    This can be noticed by setting max_connections to a low-enough level.
  7. @vinoski

    Always decrement the connection counter when a request crashes. Fixes #…

    Andrei Neculau authored vinoski committed
Commits on Aug 24, 2015
  1. @capflam

    Merge pull request #236 from phonohawk/issue-232

    capflam authored
    Revert "Fix HTTP authentication when user-defined module is used"
  2. @vinoski

    Documentation changes

    vinoski authored
    Remove obsolete note about future work in yapp intro. Update minimum
    Erlang/OTP release from R8 to R14B02 and do some minor rewording of a
    warning in yaws.tex.
  3. @andreineculau @vinoski

    use only size and mtime for generating etags

    andreineculau authored vinoski committed
  4. @vinoski
Commits on Aug 23, 2015
  1. @leoliu @vinoski

    Support the SSL server option client_renegotiation

    leoliu authored vinoski committed
    This option is new with Erlang/OTP 18.0, so it's ignored for older
  2. @vinoski

    Fix intermittent websocket test failure

    vinoski authored
    The "too big message" test was failing intermittently due to what
    looks like a race condition on which end was closing the socket
    first because of the illegal message size.
  3. @vinoski

    Fix yaws_vdir.erl include directive

    vinoski authored
    Recent versions of rebar were correctly unhappy with a malformed
    include_lib in yaws_vdir.erl. Looks like this file was missed in a
    previous edit to fix this problem. Changed to a regular include
    instead, matching other source files.
  4. @surik @vinoski

    Add yaws_api:websocket_close/1,2

    surik authored vinoski committed
    Add API for closing a websocket. Add underlying implementation
    Also fixed some minor typos and indentation problems in various
    websockets-related example files and docs.
  5. @andreineculau @vinoski

    add check for have_sendfile

    andreineculau authored vinoski committed
  6. @andreineculau @vinoski

    added cast to prevent solaris warnings

    andreineculau authored vinoski committed
Commits on Aug 22, 2015
  1. @vinoski

    fix typos in yaws.tex

    vinoski authored
  2. @toraritte @vinoski

    Fix typos

    toraritte authored vinoski committed
    Fix typos in in man/yaws.conf.5, and fix 2 news headers on index page
    (www/news) by removing 3 empty lines.
Commits on Aug 21, 2015
  1. @phonohawk

    Revert "Fix HTTP authentication when user-defined module is used"

    phonohawk authored
    This reverts commit 6cfcabd.
    After the said commit being introduced, user-defined authmod modules stopped working due to record type mismatch {badrecord,auth}. I edited the test t3 so that we can prevent this sort of error. This fixes #232.
Commits on Aug 17, 2015
  1. Merge pull request #234 from toraritte/yman-fix

    UTF-8 fix for www/yman.yaws and served man pages
Commits on Aug 16, 2015
  1. @toraritte

    UTF-8 fix for www/yman.yaws and served man pages

    toraritte authored
    Yaws built with autotools or rebar would crash while trying to
    serve man pages if os:cmd/1 returned utf-8 encoded strings.
    - www/yman.yaws
    Using unicode:characters_to_binary/1 for correct encoding
    Issue #212 solves
    this in a similar way.
    - www/
    Changed charset to utf-8 in <head> to handle splitting
    long words in line boundary ("â€" => "-").
    As far as I know unicode:characters_to_binary(Data) wouldn't
    be a problem even if the input is in latin1 because according
    to the doc:
    Data = latin1_chardata() | chardata() | external_chardata()
    ISO-8859-1 is also compatible with UTF-8 therefore changing
    the charset shouldn't be the problem either.
Something went wrong with that request. Please try again.