CouchDB
  1. CouchDB
  2. COUCHDB-879

[PATCH] Replication fails due to {stream_to, {self(), once}} parameter

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 1.0.1
    • Fix Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Environment:

      Linux midna 2.6.32.8-midna-2 #2 SMP Tue Feb 16 20:27:34 CET 2010 x86_64 GNU/Linux

    • Skill Level:
      Regular Contributors Level (Easy to Medium)

      Description

      When testing replication (with SSL and apache's mod_proxy, so you might need the patch from #878) I noticed that erlang's ssl sometimes needs to send multiple messages. However, due to the {stream_to, {self(), once}} option when calling ibrowse, only the first message gets delivered (which includes only the first chunk). When modifying the option to

      {stream_to, self()}

      , replication works fine.

      Please thoroughly check the attached patch for side-effects (I'm not sure why

      {self(), once}

      was used in the first place).

      1. couchdb-replication.patch
        0.9 kB
        Michael Stapelberg

        Activity

          People

          • Assignee:
            Unassigned
            Reporter:
            Michael Stapelberg
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Time Tracking

              Estimated:
              Original Estimate - 0.5h
              0.5h
              Remaining:
              Remaining Estimate - 0.5h
              0.5h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development