couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adam Lofts (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1702) Recv failure: Connection reset by peer in form_submit.js test
Date Wed, 13 Mar 2013 16:48:12 GMT
Adam Lofts created COUCHDB-1702:

             Summary: Recv failure: Connection reset by peer in form_submit.js test
                 Key: COUCHDB-1702
             Project: CouchDB
          Issue Type: Bug
            Reporter: Adam Lofts

On Ubuntu 12.10 the form_submit test case sometimes fails with:

not ok 1 form_submit
Reason: Failed to execute HTTP request: Recv failure: Connection reset by peer
Trace back (most recent call first):
  37: /home/adam/dev/fp3/couchdb/test/javascript/couch_http.js
 425: /home/adam/dev/fp3/couchdb/share/www/script/couch.js
      ("POST","/test_suite_db/baz",[object Object])
  20: /home/adam/dev/fp3/couchdb/share/www/script/test/form_submit.js
  53: /home/adam/dev/fp3/couchdb/test/javascript/cli_runner.js
      runTestConsole(1,"form_submit",(function (debug) {var db = new CouchDB
  72: /home/adam/dev/fp3/couchdb/test/javascript/cli_runner.js
  85: /home/adam/dev/fp3/couchdb/test/javascript/cli_runner.js

By debugging the send() calls I see that couchdb is closing the socket before the response
body gets sent. I.e. The data is getting discarded in the kernel buffer.

There are a variety of references for this issue:

In my testing I have found that adding a shutdown() call before close() fixes this issue for

A branch with the shutdown() call is available here:

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:

View raw message