Skip to content
Commits on Jun 25, 2012
  1. @vinoski

    add support for W3C Server-Sent Events

    vinoski committed Jun 1, 2012
    Server-Sent Events is a W3C working draft allowing servers to send simple
    events to a client. See the documentation in www/server_sent_events.yaws
    for a full description.
Commits on May 12, 2010
  1. @vinoski

    Allow "stream processes" to close the client socket

    vinoski committed May 12, 2010
    Yaws allows application processes to take control of the client socket
    via the streamcontent_from_pid directive. Sometimes during the course
    of its data delivery the application might find that it needs to close
    the socket, but the original design did not provide a way for the
    application to tell Yaws the socket was closed. The result was that a
    message like the one below would show up in the Yaws log whenever a
    closed socket was returned to Yaws, due to Yaws trying to continue to
    use the socket as if it were still open:
    
         =ERROR REPORT==== 12-May-2010::00:27:05 ===
         Yaws process died: {{badmatch,{error,einval}},
                             [{yaws,setopts,3},
                              {yaws,http_recv_request,2},
                              {yaws,do_http_get_headers,2},
                              {yaws,http_get_headers,2},
                              {yaws_server,aloop,3},
                              {yaws_server,acceptor0,2},
                              {proc_lib,init_p_do_apply,3}]}
    
    Change yaws_api:stream_process_end/2 to allow the application to pass
    the atom 'closed' as the first argument, in place of the socket
    argument. This informs Yaws that the socket is closed and prevents it
    from trying to keep using it, thus avoiding errors like the one above.
Commits on Sep 19, 2009
  1. @vinoski

    Use iolists instead of binaries for streamcontent_from_pid data, and

    vinoski committed Sep 19, 2009
    add a new test for the streamcontent_from_pid feature
  2. @vinoski
Commits on Feb 14, 2008
  1. untabified all of yaws

    committed Feb 14, 2008
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@1217 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Mar 21, 2005
Commits on Dec 17, 2004
  1. ""

    committed Dec 17, 2004
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@818 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Dec 2, 2004
  1. more css hackery

    committed Dec 2, 2004
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@788 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Nov 19, 2004
  1. added log_wrap_size, configurable wrap size for all logs, fixed a bug…

    committed Nov 19, 2004
    … introduced by jb for ssi, major doics overhaul again, redid yaws docs using CSS only,
    
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@785 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Commits on Sep 13, 2004
  1. added example docs on how to stream data

    committed Sep 13, 2004
    git-svn-id: https://erlyaws.svn.sourceforge.net/svnroot/erlyaws/trunk/yaws@770 9fbdc01b-0d2c-0410-bfb7-fb27d70d8b52
Something went wrong with that request. Please try again.