[GitHub] couchdb-couch-epi pull request: Implement 'couch_epi:is_defined_by...

2015-08-24 Thread iilyak
GitHub user iilyak opened a pull request: https://github.com/apache/couchdb-couch-epi/pull/6 Implement 'couch_epi:is_defined_by_app/4' You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-epi is_defined_by_app

[GitHub] couchdb-couch-epi pull request: 2796 improve performance of provid...

2015-09-02 Thread iilyak
Github user iilyak commented on a diff in the pull request: https://github.com/apache/couchdb-couch-epi/pull/8#discussion_r38559864 --- Diff: src/couch_epi_data_gen.erl --- @@ -174,27 +175,43 @@ module_name({Service, Key}) when is_list(Service) andalso is_list(Key

[GitHub] couchdb-couch-epi pull request: 2796 improve performance of provid...

2015-09-02 Thread iilyak
Github user iilyak commented on the pull request: https://github.com/apache/couchdb-couch-epi/pull/8#issuecomment-137174664 List of related PRs: - https://github.com/apache/couchdb-global-changes/pull/11 - https://github.com/apache/couchdb-chttpd/pull/67 - https

[GitHub] couchdb-couch-epi pull request: 2796 improve performance of provid...

2015-09-02 Thread iilyak
Github user iilyak commented on the pull request: https://github.com/apache/couchdb-couch-epi/pull/8#issuecomment-137170900 Even though earlier solution with usage of `erlang:function_exported` improves performance. We have to pay the cost of `erlang:function_exported` on every call

[GitHub] couchdb-couch-epi pull request: 2796 improve performance of provid...

2015-09-02 Thread iilyak
Github user iilyak commented on the pull request: https://github.com/apache/couchdb-couch-epi/pull/8#issuecomment-137181604 Since we have only two places in two modules which we need to care about. I could check for `erlang:exported_function` in place to avoid confusion

[GitHub] couchdb-couch-epi pull request: 2796 improve performance of provid...

2015-09-02 Thread iilyak
GitHub user iilyak opened a pull request: https://github.com/apache/couchdb-couch-epi/pull/8 2796 improve performance of providers function You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-epi 2796

[GitHub] couchdb-couch-epi pull request: 2796 improve performance of provid...

2015-09-02 Thread iilyak
Github user iilyak commented on the pull request: https://github.com/apache/couchdb-couch-epi/pull/8#issuecomment-137181011 @rnewson: `Module:Fun(Args)` wouldn't work. We would have to handle `Module:Fun(Arg)` and `Module:Fun()`. With `eval_if_exported` approach I would have

[GitHub] couchdb-couch-epi pull request: Fix typespec for apply function

2015-09-09 Thread iilyak
GitHub user iilyak opened a pull request: https://github.com/apache/couchdb-couch-epi/pull/9 Fix typespec for apply function You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-epi fix_typespec Alternatively

[GitHub] couchdb-couch-epi pull request: Use app env to specify list of plu...

2015-09-11 Thread iilyak
GitHub user iilyak opened a pull request: https://github.com/apache/couchdb-couch-epi/pull/10 Use app env to specify list of plugins You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-epi synchronous_startup

[GitHub] couchdb-couch-epi pull request: Use app env to specify list of plu...

2015-09-11 Thread iilyak
Github user iilyak commented on a diff in the pull request: https://github.com/apache/couchdb-couch-epi/pull/10#discussion_r39285803 --- Diff: src/couch_epi_sup.erl --- @@ -42,3 +48,36 @@ init([]) -> ?SUP(couch_epi_keeper_sup, []) ],

[GitHub] couchdb-couch-epi pull request: Simplify couch epi

2015-09-28 Thread iilyak
GitHub user iilyak opened a pull request: https://github.com/apache/couchdb-couch-epi/pull/12 Simplify couch epi You can merge this pull request into a Git repository by running: $ git pull https://github.com/cloudant/couchdb-couch-epi simplify_couch_epi Alternatively you

[GitHub] couchdb-couch-epi pull request: Simplify couch epi

2015-09-29 Thread iilyak
Github user iilyak commented on the pull request: https://github.com/apache/couchdb-couch-epi/pull/12#issuecomment-144103614 > @kxepal: And if it is, how to register new features on fly? Unfortunately there is no easy way to do it. But you can deal with it on release upgr

[GitHub] couchdb-couch-epi pull request: Simplify couch epi

2015-09-29 Thread iilyak
Github user iilyak commented on a diff in the pull request: https://github.com/apache/couchdb-couch-epi/pull/12#discussion_r40691917 --- Diff: src/couch_epi_data.erl --- @@ -12,131 +12,103 @@ -module(couch_epi_data). --behaviour(gen_server). +-include

[GitHub] couchdb-couch-epi pull request: Simplify couch epi

2015-09-29 Thread iilyak
Github user iilyak commented on the pull request: https://github.com/apache/couchdb-couch-epi/pull/12#issuecomment-144106129 @rnewson: On `by_key(Handle) when Handle /= undefined` I'll add the guards to `couch_epi.erl` instead. --- If your project is set up for it, you can reply

[GitHub] couchdb-couch-epi pull request: Simplify couch epi

2015-09-29 Thread iilyak
Github user iilyak commented on a diff in the pull request: https://github.com/apache/couchdb-couch-epi/pull/12#discussion_r40690028 --- Diff: src/couch_epi_codechange_monitor.erl --- @@ -0,0 +1,63 @@ +% Licensed under the Apache License, Version 2.0 (the "License"

[2/2] couch-index commit: updated refs/heads/master to e7d2698

2016-06-02 Thread iilyak
Merge remote branch 'cloudant:66522-hold-db-open-for-compact-recompact' This closes #17 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-index/commit/e7d26980

[1/2] couch-index commit: updated refs/heads/master to e7d2698

2016-06-02 Thread iilyak
Repository: couchdb-couch-index Updated Branches: refs/heads/master aa8e6f957 -> e7d269800 Hold db opened for compact/recompact switch couch_index_compactor should hold the underlying DB open during the switch from the compaction phase to the recompaction phase. Otherwise db could be

[2/2] fabric commit: updated refs/heads/master to 0aeaaa0

2016-06-05 Thread iilyak
Merge remote branch 'cloudant:2730-fix-compilation-warnings' This closes #54 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/0aeaaa08 Tree:

[1/2] fabric commit: updated refs/heads/master to 0aeaaa0

2016-06-05 Thread iilyak
Repository: couchdb-fabric Updated Branches: refs/heads/master 4305a57c8 -> 0aeaaa084 Fix compilation warnings COUCHDB-2730 Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/0cd2b7c0 Tree:

[15/17] couchdb commit: updated refs/heads/master to 1e25dc1

2016-05-25 Thread iilyak
fabric: Fix fabric_doc_open_revs Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/a3a39fc7 Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/a3a39fc7 Diff:

[1/5] couch commit: updated refs/heads/master to 5f9cf9f

2016-05-25 Thread iilyak
Repository: couchdb-couch Updated Branches: refs/heads/master be1dedb8e -> 5f9cf9f74 get_user_creds can receive nil as first arg Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/628a0f4b Tree:

[3/5] couch commit: updated refs/heads/master to 5f9cf9f

2016-05-25 Thread iilyak
gen_server: handle_call suppose to return `{reply, Res, State}` Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/4214c4fa Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/4214c4fa Diff:

[4/5] couch commit: updated refs/heads/master to 5f9cf9f

2016-05-25 Thread iilyak
couch_proc_manager:remove_proc expects #proc_int{} record Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/aa246095 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/aa246095 Diff:

[5/5] couch commit: updated refs/heads/master to 5f9cf9f

2016-05-25 Thread iilyak
Merge remote branch 'cloudant:fix-some-type-errors' This closes #176 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/5f9cf9f7 Tree:

[2/2] mem3 commit: updated refs/heads/master to 15615b2

2016-05-24 Thread iilyak
Merge remote branch 'cloudant:fix-type-spec' This closes #24 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/15615b29 Tree:

[1/2] mem3 commit: updated refs/heads/master to 15615b2

2016-05-24 Thread iilyak
Repository: couchdb-mem3 Updated Branches: refs/heads/master cea3db578 -> 15615b295 Fix type-spec of mem3_sync:next_replication/3 Project: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-mem3/commit/1a176b01 Tree:

[2/2] fabric commit: updated refs/heads/master to 9f4c999

2016-06-13 Thread iilyak
Merge remote branch 'cloudant:68151-fix-rexi_DOWN-handler' This closes #57 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/9f4c9994 Tree:

[1/2] fabric commit: updated refs/heads/master to 9f4c999

2016-06-13 Thread iilyak
Repository: couchdb-fabric Updated Branches: refs/heads/master e5c9c62d8 -> 9f4c9994f Fix rexi_DOWN and rexi_EXIT handlers In the cases when we receive rexi_DOWN or rexi_EXIT we call handle_message with {ok, []}. This crashes lists:min/1. Since it expects a list with at least one element.

[1/2] fabric commit: updated refs/heads/master to 4305a57

2016-06-02 Thread iilyak
Repository: couchdb-fabric Updated Branches: refs/heads/master 2eb1e132e -> 4305a57c8 Filter out not_found replies when #doc{} is found There are places in the codebase which assume that the return from open_revs is always a list with one element in it. Fix the regression introduced in

[2/2] fabric commit: updated refs/heads/master to 4305a57

2016-06-02 Thread iilyak
Merge remote branch 'cloudant:67266-filter-out-not-found' This closes #53 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/4305a57c Tree:

[2/2] chttpd commit: updated refs/heads/master to 880dedc

2016-06-02 Thread iilyak
Merge remote branch 'cloudant:2730-fix-compilation-warnings' This closes #124 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/880dedc9 Tree:

[1/2] chttpd commit: updated refs/heads/master to 880dedc

2016-06-02 Thread iilyak
Repository: couchdb-chttpd Updated Branches: refs/heads/master f3d5d1b0c -> 880dedc94 Fix compilation warnings COUCHDB-2730 Project: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-chttpd/commit/a66760bd Tree:

[1/2] couch-mrview commit: updated refs/heads/master to cfc3549

2016-06-20 Thread iilyak
Repository: couchdb-couch-mrview Updated Branches: refs/heads/master 8567b4337 -> cfc354989 Send empty string from _list if no result There is a corner case when list function does not return any Chunk. In this case we would want to return empty string to the client. COUCHDB-2847 Project:

[1/2] couch commit: updated refs/heads/master to 2f32166

2016-06-20 Thread iilyak
Repository: couchdb-couch Updated Branches: refs/heads/master 5f9cf9f74 -> 2f3216660 Add test suite for _list functionality COUCHDB-2847 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/2291c633 Tree:

[2/2] couch-mrview commit: updated refs/heads/master to cfc3549

2016-06-20 Thread iilyak
Merge remote branch 'cloudant:2847-list_when_no_rows' This closes #49 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-mrview/commit/cfc35498 Tree:

[2/2] couch commit: updated refs/heads/master to 2f32166

2016-06-20 Thread iilyak
Merge remote branch 'cloudant:2847-list_when_no_rows' This closes #178 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/2f321666 Tree:

[2/5] couch commit: updated refs/heads/master to 1bcf525

2016-06-23 Thread iilyak
Fix couch_key_tree:merge_extend arg types Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/e9c9bb40 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/e9c9bb40 Diff:

[3/5] couch commit: updated refs/heads/master to 1bcf525

2016-06-23 Thread iilyak
Fix some dialyzer warnings Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/8cab28a7 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/8cab28a7 Diff:

[4/5] couch commit: updated refs/heads/master to 1bcf525

2016-06-23 Thread iilyak
Remove dead code {error, Reason} handling has been removed since teach_ddoc function never returns it. Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/87c4afc5 Tree:

[5/5] couch commit: updated refs/heads/master to 1bcf525

2016-06-23 Thread iilyak
Merge remote branch 'cloudant:fix_some_specs' This closes #179 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/1bcf5254 Tree:

[1/5] couch commit: updated refs/heads/master to 1bcf525

2016-06-23 Thread iilyak
Repository: couchdb-couch Updated Branches: refs/heads/master 411c130ea -> 1bcf52545 Dead code elimination Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/17279852 Tree:

[1/2] couchdb commit: updated refs/heads/master to 9f0d22f

2016-06-27 Thread iilyak
Repository: couchdb Updated Branches: refs/heads/master aa0c08c2d -> 9f0d22fc5 Point erl to sys.config file Add -config path/to/sys.config argument to erlexec. COUCHDB-2384 Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo Commit:

[1/3] fabric commit: updated refs/heads/master to c38c692

2016-06-27 Thread iilyak
Repository: couchdb-fabric Updated Branches: refs/heads/master aa17ddf3c -> c38c692fc Improve fabric:all_docs spec - fabric:all_docs supports options passed as proplist - fabric:all_docs return value is controled by a callback therefore it should be `{ok, any()}` Project:

[3/3] fabric commit: updated refs/heads/master to c38c692

2016-06-27 Thread iilyak
Merge remote branch 'cloudant:fix_some_specs' This closes #60 Signed-off-by: ILYA Khlopotov Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/c38c692f Tree:

[2/3] fabric commit: updated refs/heads/master to c38c692

2016-06-27 Thread iilyak
fabric:update_docs supports json_obj() Project: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/commit/3c7345a3 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-fabric/tree/3c7345a3 Diff:

[2/2] couch commit: updated refs/heads/master to e928e83

2016-02-16 Thread iilyak
Merge remote-tracking branch 'github/pr/135' Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/e928e83b Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/e928e83b Diff:

[1/2] couch commit: updated refs/heads/master to e928e83

2016-02-16 Thread iilyak
Repository: couchdb-couch Updated Branches: refs/heads/master f3b7f5a47 -> e928e83bd Add couch_debug:opened_files/0 This function is for debugging purposes only. It iterates through all open ports and returns file descriptor and filename correspondent to every port. Project:

[2/2] couch commit: updated refs/heads/master to d08ce07

2016-02-16 Thread iilyak
Merge remote-tracking branch 'github/pr/140' Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/d08ce076 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/d08ce076 Diff:

[1/2] couch commit: updated refs/heads/master to d08ce07

2016-02-16 Thread iilyak
Repository: couchdb-couch Updated Branches: refs/heads/master e928e83bd -> d08ce076f Fix test_util:with_process_restart - The order of arguments is incorrect. - Return the result of stop_sync from with_process_restart/3 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo

[1/3] couch commit: updated refs/heads/master to a0041fb

2016-02-16 Thread iilyak
Repository: couchdb-couch Updated Branches: refs/heads/master d08ce076f -> a0041fbf8 Comment out flaky test. While working on the issue test suite was re-enabled. It passes locally. However one of the test cases fails in other environments so commenting out that flaky test for now. Project:

[3/3] couch commit: updated refs/heads/master to a0041fb

2016-02-16 Thread iilyak
Merge branch 'github/pr/139' Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/a0041fbf Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/a0041fbf Diff:

[2/3] couch commit: updated refs/heads/master to a0041fb

2016-02-16 Thread iilyak
Propagate db delete event to changes callback Not propagating the `delete` event to the changes callback causes db to stay open when it is deleted in the presence of `continuous` requests to _changes feed. This in its turn causes couch_file to stay open until the connection is closed by the

[44/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Pass Stack to couch_httpd_handler:start_link Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/d2b09732 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/d2b09732 Diff:

[13/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove equivalent copy of etag_respond/3 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/8e243539 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/8e243539 Diff:

[38/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Use Stack to dispatch to correct auth_module Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/58ac4f60 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/58ac4f60 Diff:

[03/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Bring accepted_encodings/1 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/e040c01a Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/e040c01a Diff:

[25/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Extract add_headers function Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/79084eaa Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/79084eaa Diff:

[05/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Bring validate_host/1 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/63be3e75 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/63be3e75 Diff:

[50/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove iolist_size(Data) == 0 case from send_chunk This case is handled by start_delayed_response functions. Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/e44a372e Tree:

[04/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Convert case into clause for body/1 as in original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/8c5a833e Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/8c5a833e Diff:

[27/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Extract maybe_log_response function Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/460d75de Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/460d75de Diff:

[11/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Bring start_response/3 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/09d02456 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/09d02456 Diff:

[09/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove equivalent copy of body/1 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/4d4b1a39 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/4d4b1a39 Diff:

[24/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Exatract handle_response function Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/e7647e38 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/e7647e38 Diff:

[20/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Bring validate_referer/1 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/d2c703d6 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/d2c703d6 Diff:

[36/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Pass Stack tuple module to handle_request_int Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/52c75f93 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/52c75f93 Diff:

[22/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Move module tests Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/32aac3ab Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/32aac3ab Diff:

[31/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove no longer need function from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/ebf1b53b Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/ebf1b53b Diff:

[01/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Repository: couchdb-couch-httpd Updated Branches: refs/heads/split_out_httpd_stack [created] e44a372ee Remove exact copy of absolute_uri/2 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit:

[28/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Bring support needed for couch_httpd_rewrite Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/f6b3f96b Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/f6b3f96b Diff:

[14/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge start_chunked_response/3 and send_response/4 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/38073bb9 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/38073bb9 Diff:

[06/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge the diff for start_response_length/4 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/305e54b7 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/305e54b7 Diff:

[37/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Use functions from couch_httpd app in tests Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/1065a710 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/1065a710 Diff:

[07/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Move parse_multipart_request/3 into couch_httpd_multipart Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/1646437c Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/1646437c

[34/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Use Stack to select http handlers Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/675e3c70 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/675e3c70 Diff:

[41/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Introduce vhosts configuration into CORS In order to remove code duplication we move vhosts support from couch_http_cors into chttpd_cors. We also dispatch chttpd:send_response to couch_http which does call chttpd_cors:headers. In order to avoid double injection of CORS headers we check for

[08/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove equivalent copy of maybe_decompress/1 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/17375fd0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/17375fd0

[02/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Extract host_for_request/1 as it is done in original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/9b3b8b5a Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/9b3b8b5a Diff:

[49/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Fix dispatch to handle_error hook Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/3e6eda7f Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/3e6eda7f Diff:

[43/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge differences in catch_error from original - catch_error(_HttpReq, exit, normal) - catch_error(HttpReq, throw, unacceptable_encoding) - catch_error(HttpReq, throw, bad_accept_encoding_value) - catch_error(HttpReq, exit, snappy_nif_not_loaded) Project:

[12/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove equivalent copy of etag_match/2 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/36f13a11 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/36f13a11 Diff:

[16/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge the diff for send_chunk/2 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/7c335ffe Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/7c335ffe Diff:

[47/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Export parse_multipart_request/3 for replicator Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/c4577408 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/c4577408 Diff:

[45/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Use cors_config for 'credentials' setting The 'credentials' setting should be configurable per vhost. COUCHDB-2945 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/cfbd7f7b Tree:

[17/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Remove no longer needed function from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/680639ee Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/680639ee Diff:

[39/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Set stack in #httpd_resp{} Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/265c82c4 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/265c82c4 Diff:

[19/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge the diff for verify_is_server_admin/1 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/d2c5f480 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/d2c5f480 Diff:

[48/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Plug couch_epi Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/b208d8e4 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/b208d8e4 Diff:

[21/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge the diff for send_error/2 and send_error/4 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/d38f6e96 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/d38f6e96 Diff:

[26/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Use basic_headers/2 in serve_file Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/2bde01e3 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/2bde01e3 Diff:

[42/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Treat value passed in Origin as case sensitive According to CORS spec here https://www.w3.org/TR/cors The value of the Origin header is not a case-sensitive COUCHDB-2945 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit:

[15/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Bring etag_maybe/2 from original Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/cf6dead8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/cf6dead8 Diff:

[18/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge the diff for error_info/1 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/8e0b3f4b Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/8e0b3f4b Diff:

[35/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Strip scheme out of Host for cors_section Value returned by `couch_httpd_vhost:host/1` might not contain scheme. The cors section is named after vhost name (i.e. without scheme). For example: [cors:partner.com] methods = headers = exposed_headers = origins =

[40/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Refactor couch_httpd_config_listener Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/66ce6af0 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/66ce6af0 Diff:

[33/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Extract set_socket_options/2 function Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/e48282fe Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/e48282fe Diff:

[29/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Extract maybe_abort_head_request Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/f3ed8094 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/f3ed8094 Diff:

[32/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Extract get_stack_config/1 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/2731706c Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/2731706c Diff:

[23/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Merge the diff for send_chunked_error/2 Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/7f7ff5a4 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/7f7ff5a4 Diff:

[46/50] couch-httpd commit: updated refs/heads/split_out_httpd_stack to e44a372

2016-03-01 Thread iilyak
Use mock since we don't start epi on tests Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/repo Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/commit/bdca56a8 Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-httpd/tree/bdca56a8 Diff:

  1   2   3   4   5   6   7   >