Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix list HTTP header handling. #18

Closed
wants to merge 3 commits into from
Closed

Commits on Apr 15, 2012

  1. Fix list HTTP header handling.

    Currently calls to getRow() cause the HTTP headers to be sent immediately back
    to the client. This happens even if an error is thrown after the getRow(), but
    before any send(...) or start(...). Worse, if a list throws an exception an
    extra, invalid header is sent to the client (resulting in various bad
    behavior).
    
    Erlang list handling will now wait until data has been sent BEFORE sending the
    HTTP headers to the client. If an error is reported it will result in an HTTP
    error code as expected. This does not change the behavior of errors thrown
    AFTER data has been sent: They will still result in an HTTP 200 even if an
    error is reported.
    
    The line protocol between Erlang and os processes has been extended to support
    an optional Header field on "chunks" and "end". The javascript list handling
    has been updated to use this if a new header is set via start(...). This makes
    it possible to begin processing with getRow(), but later reset the headers via
    start(...). Again, if data has been sent(...) the new headers will NOT take
    effect.
    
    COUCHDB-430
    COUCHDB-514
    COUCHDB-764
    calebcase committed Apr 15, 2012
    Copy the full SHA
    8e8501c View commit details
    Browse the repository at this point in the history

Commits on Nov 5, 2012

  1. Copy the full SHA
    ac2240b View commit details
    Browse the repository at this point in the history
  2. Copy the full SHA
    5b02fdb View commit details
    Browse the repository at this point in the history