Commits on Jun 21, 2012
Commits on Jun 20, 2012
  1. preparing for 1.93

    committed Jun 20, 2012
  2. preparing for 1.93

    committed Jun 20, 2012
  3. preparing for 1.93

    committed Jun 20, 2012
  4. preparing for 1.93

    committed Jun 20, 2012
  5. Use crypto:rand_bytes() instead of the cryptogrphicalli weak random m…

    …odule. Swedish security consultant and cryptographer Kalle Zetterlund discovered a way to - given a sequence of cokkies produced by yaws_session_server - predict the next session id. Thus providing a gaping security hole into yaws servers that yse the yaws_session_server to maintain cookie based HTTP sessions
    committed Jun 20, 2012
Commits on Jun 19, 2012
  1. Merge pull request #110 from tuncer/reltool

    Simplify reltool.config
    vinoski committed Jun 19, 2012
Commits on Jun 18, 2012
  1. Simplify reltool.config

    tuncer committed Jun 18, 2012
Commits on Jun 16, 2012
  1. minor fixes to yaws.tex

    vinoski committed Jun 16, 2012
Commits on Jun 15, 2012
  1. make sure to always send proper strings to file:write() while logging

    Failure to send proper string to file:write() on FreeBSD could result in a
    emulator Bad value on output port 'efile' if bad data makes it there, say
    an atom.
    nicad committed with vinoski Jun 14, 2012
  2. default to a tcp queue backlog of 1024 (Nicolas Adiba)

    Default to a backlog of 1024 rather than the default 5 that TCP provides.
    vinoski committed Jun 15, 2012
  3. log debug messages to the error_logger for embedded mode (Nicolas Adiba)

    Log debug messages to the error_logger given that stdout is not available
    in embedded mode.
    vinoski committed Jun 15, 2012
Commits on Jun 13, 2012
Commits on Jun 11, 2012
  1. fix overfull hbox warnings in yaws.tex

    Fix overfull hboxes and also update some of the record definitions (like
    vinoski committed Jun 11, 2012
  2. Handle non-chunked responses without content-length in yaws_revproxy

    In that case, the revproxy must read until the backend closes.
    Add a test for this new functionality
    capflam committed with vinoski Jun 11, 2012
  3. Refactor yaws_revproxy when large non-chunked content is received

    Fix: srvconn_status must not be set to keep-alive
    Refactoring: prepare the handling of non-chunked responses with no
    capflam committed with vinoski Jun 11, 2012
  4. Fix conditions to close the backend socket when an error occurs

    We must close the socket when an error _OTHER_THAN_ 'closed' occurs.
    capflam committed with vinoski Jun 11, 2012
  5. handle large non-chunked content in yaws_revproxy

    Use partial_post_size as a block size to handle large non-chunked content
    from backend servers in yaws_revproxy. Read the content block by block,
    returning each block to the client as it arrives. This avoids having to
    read the entire backend response into memory before replying to the
    client. Add a test for this new functionality and fix .gitignore to ignore
    the new content file used for the test.
    vinoski committed Jun 11, 2012
Commits on Jun 6, 2012
Commits on Jun 4, 2012
  1. use request content type for SOAP responses

    Rather than hard-coding text/xml or application/xml as the content type for
    SOAP responses, extract the content type from the SOAP request and use it
    in the response. This will avoid problems with clients that don't properly
    handle certain MIME types with SOAP.
    vinoski committed Jun 4, 2012
Commits on Jun 2, 2012
  1. fix websockets reply status codes for client close messages

    A number of autobahn WebSockets tests were failing due to replies
    containing incorrect status codes. Check client status codes and reply with
    correct codes.
    vinoski committed Jun 2, 2012
  2. refactor yaws_websockets as a gen_server

    The yaws_websockets module used an explicit recursive loop. Refactor it to
    use a gen_server instead.
    vinoski committed Jun 1, 2012
Commits on Jun 1, 2012
  1. assert return value of filelib:ensure_dir for $HOME/yaws dir

    A user reported an installation-related error because of a missing
    $HOME/.yaws dir where the CTL file is stored. Assert that
    filelib:ensure_dir returns ok for that directory.
    vinoski committed Jun 1, 2012
  2. revert SOAP response MIME type to "text/xml"

    Some Microsoft tools don't handle "application/xml" as the MIME type for
    SOAP responses. Revert the change from "text/xml" made in commit 15454bc.
    Also perform some minor cleanup in yaws_soap_lib and yaws_soap12_lib.
    vinoski committed Jun 1, 2012
Commits on May 31, 2012
  1. use already-downloaded ibrowse for tests if network down

    "make test" failed for disconnected operation due to trying to check the
    latest version of ibrowse, which we use for a test client. Change it to
    just use any existing ibrowse if it can't check github for the ibrowse
    vinoski committed May 31, 2012
Commits on May 26, 2012
  1. Merge pull request #107 from nicad/master

    typo in WWW-Authenticate handling leading to infinite recursion
    vinoski committed May 26, 2012
Commits on May 12, 2012
  1. add new HTTP status codes from RFC 6585

    RFC 6585 added new HTTP status codes, so add them here.
    Also change the code that limits the number of incoming headers to return
    new status code 431 (Request Header Fields Too Large).
    vinoski committed May 12, 2012
Commits on May 11, 2012
  1. Add support for precompressed static files

    By setting use_gzip_static to true in deflate options, in a vhost
    configuration, It is possible to serve precompressed versions of
    static files. Yaws will look for precompressed files in the same
    location as original files that end in ".gz".
    Only files that do not fit in the cache are concerned and the mtime
    of a precompressed file must be higher than the one of original file.
    capflam committed May 11, 2012
  2. Fix compat_send/3 to return the number of bytes sent

    So all versions of the send function into yaws_sendfile will return
    {ok, BytesSent} if successful, otherwise {error, Reason}.
    capflam committed May 11, 2012
  3. Improve how the responses compression is handled

    Among other things, we can now disable the compression in yaws scripts by
    returning '{header, {content_encoding, "identity"}}'.
    A bug was also fixed when part of a large file is requested. The response
    content length was calculated using the file size and not the part size.
    capflam committed May 11, 2012
Commits on May 7, 2012
Commits on May 6, 2012
  1. fix issue #106: commit 6b5266 broke websockets

    The fix for uncaught exceptions as implemented in commit 6b5266
    unfortunately included too much within a try/catch block and ended up
    reporting intentional exit(normal) code in websockets as uncaught
    exceptions. Rework the try/catch to protect only the call needing
    vinoski committed May 6, 2012
Commits on May 5, 2012