Merge pull request #107 from nicad/master

typo in WWW-Authenticate handling leading to infinite recursion
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
version.
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 15454bcd.

Also perform some minor cleanup in yaws_soap_lib and yaws_soap12_lib.
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.
refactor yaws_websockets as a gen_server

The yaws_websockets module used an explicit recursive loop. Refactor it to
use a gen_server instead.
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.
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.
add a do_recv variant taking a timeout arg
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.
Fix conditions to close the backend socket when an error occurs

We must close the socket when an error _OTHER_THAN_ 'closed' occurs.
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
content-length.
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
fix overfull hbox warnings in yaws.tex

Fix overfull hboxes and also update some of the record definitions (like
Add support of the 'OPTIONS' method when WebDav is enabled
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.
default to a tcp queue backlog of 1024 (Nicolas Adiba)

Default to a backlog of 1024 rather than the default 5 that TCP provides.
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.
minor fixes to yaws.tex
Simplify reltool.config
Merge pull request #110 from tuncer/reltool

Simplify reltool.config