Uploaded image for project: 'CouchDB'
  1. CouchDB
  2. COUCHDB-95

HTTP/mochiweb failures when tested via Safari

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.8
    • Fix Version/s: 0.8.1
    • Component/s: HTTP Interface
    • Labels:
      None
    • Environment:

      Running test suite from Safari on OS X with a local couchdb instance

      Description

      The tests randomly fail, but from Safari they seem to fail much more often than other browsers. We think it's a timing bug inside mochiweb, and Safari has a fast javascript engine and triggers it more reliably.

      Typically when there is a test failure, an error like this is reported at the Erlang console:

      [error] [<0.2821.0>] {error_report,<0.24.0>,
      {<0.2821.0>,crash_report,
      [[

      {pid,<0.2821.0>}

      ,

      {registered_name,[]}

      ,
      {error_info,
      {error,
      {case_clause,{error,einval}},
      [

      {mochiweb_request,get,2}

      ,

      {couch_httpd,handle_request,2}

      ,

      {mochiweb_http,headers,4}

      ,

      {proc_lib,init_p,5}

      ]}},
      {initial_call,
      {mochiweb_socket_server,acceptor_loop,
      [

      {<0.110.0>,#Port<0.164>,#Fun<mochiweb_http.1.62821608>}

      ]}},

      {ancestors,[couch_httpd,couch_server_sup,<0.31.0>]}

      ,

      {messages,[]}

      ,

      {links,[<0.110.0>,#Port<0.369>]}

      ,
      {dictionary,[{mochiweb_request_qs,[

      {"rev","2421655930"}

      ]}]},

      {trap_exit,false}

      ,

      {status,running}

      ,

      {heap_size,4181}

      ,

      {stack_size,23}

      ,

      {reductions,79705}

      ],
      []]}}
      [error] [<0.110.0>] {error_report,<0.24.0>,
      {<0.110.0>,std_error,
      {mochiweb_socket_server,235,
      {child_error,{case_clause,{error,einval}}}}}}

      =ERROR REPORT==== 15-Jul-2008::13:54:26 ===
      {mochiweb_socket_server,235,
      {child_error,{case_clause,{error,einval}}}}

        Attachments

          Activity

            People

            • Assignee:
              damienkatz Damien Katz
              Reporter:
              damienkatz Damien Katz
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: