summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2012-02-22Merge 0.4.xRobert Newson
2012-01-31Fix previous commitRobert Newson
2012-01-31Fix bug in replicator request pipliningPaul J. Davis
A replication with both an HTTP source and target on the same host and port could end up in a dead lock due to ibrowse replication pipelining when attachments are present on the source. The ibrowse http worker would end up forming a multipart/mime body using anonymous reader functions for attachment stubs. When the attachment stub functions are executed it is possible that they end up assigned to the same ibrowse worker. This is a bit of a long path but then end result is equivalent to calling gen_server:call(self(), Args, infinity) from a gen_server callback. A quick work around for users is to set up a DNA alias (possibly in /etc/hosts) or to use a combination of hostname and ip address so that ibrowse assigns the requests to different pools.
2012-01-27WhitespaceBob Dionne
2012-01-24Minor bug getting the reduce_limit settingPaul J. Davis
2012-01-24Minor bug getting the reduce_limit settingPaul J. Davis
2012-01-21Bump dependencies for pre7 releaseRobert Newson
2012-01-18Revert use of spawn_monitorRobert Newson
As Filipe correctly points out, we want the parent to die if the child dies.
2012-01-17Bump to chttpd 1.4.2Robert Newson
2012-01-17Merge pull request #91 from cloudant/13133-attachment-replicationRobert Newson
Fix attachment replication BugzID: 13133
2012-01-16Only set the process dictionary if exit was okRobert Newson
2012-01-16Use spawn_monitor to await process completionRobert Newson
BugzID: 13133
2012-01-10Remove superfluous formattingAdam Kocoloski
2012-01-10Remove unused URLsAdam Kocoloski
2012-01-10Bump fabric and chttpd versionsAdam Kocoloski
The fabric bump fixes some corner cases for read repair. The chttpd bump improves error handling for delayed responses.
2011-12-23Make cURL a soft dependencyPaul J. Davis
This makes sure that we only optionally require the same version of cURL that CouchDB does.
2011-12-23Make cURL a soft dependencyPaul J. Davis
This makes sure that we only optionally require the same version of cURL that CouchDB does.
2011-12-12Allow CPPPATH to be overriden in the environmentPaul J. Davis
2011-12-12Set the stack size for sub contextsPaul J. Davis
I was forgetting to pass the args through to evalcx so that it could use the stack size specified on the command line.
2011-12-06Allow CPPPATH to be overriden in the environmentPaul J. Davis
2011-12-02whitespaceBob Dionne
2011-12-01Set the stack size for sub contextsPaul J. Davis
I was forgetting to pass the args through to evalcx so that it could use the stack size specified on the command line.
2011-11-22Remove unused importsBob Dionne
2011-11-11Add check for JS script object typePaul J. Davis
2011-11-09Add check for JS script object typePaul J. Davis
2011-11-09Bump fabric version and drop the pre1 from release versionAdam Kocoloski
2011-11-09Conditionally apply JSON encoding to update_seq valuesRobert Newson
BigCouch 0.3 cannot parse requests of the form /db/_changes?since="123-foo" so the recent ?JSON_ENCODE addition to Since in two places causes 0.3 <-> 0.4 replication to fail with json_encode/badterm errors. This patch applies JSON encoding only when the Since value is not already a binary (i.e, when it's a [integer(), binary()]) and interop is restored. BugzID: 12833
2011-11-09Merge pull request #80 from cloudant/12833-conditional_json_encodeAdam Kocoloski
2011-11-09Conditionally apply JSON encoding to update_seq valuesRobert Newson
BigCouch 0.3 cannot parse requests of the form /db/_changes?since="123-foo" so the recent ?JSON_ENCODE addition to Since in two places causes 0.3 <-> 0.4 replication to fail with json_encode/badterm errors. This patch applies JSON encoding only when the Since value is not already a binary (i.e, when it's a [integer(), binary()]) and interop is restored. BugzID: 12833
2011-11-08Simplify READMEAdam Kocoloski
2011-11-08Update troubleshooting linkAdam Kocoloski
2011-11-08Simplify READMEAdam Kocoloski
2011-11-04Add a script to create a source tarballRobert Newson
2011-10-31Merge commit '1.1.1' into 0.4.xRobert Newson
Conflicts: acinclude.m4.in configure.ac couchjs/c_src/http.c src/erlang-oauth/Makefile.am src/erlang-oauth/oauth.app.in src/erlang-oauth/oauth_hmac_sha1.erl src/erlang-oauth/oauth_http.erl src/erlang-oauth/oauth_plaintext.erl src/etap/etap_web.erl
2011-10-31Fix retrieval of headers larger than 4kAdam Kocoloski
Our headers start with a <<1>> and then four bytes indicating the length of the header and its checksum. When the header is larger than 4090 bytes it will be split across multiple blocks in the file and will need to be reassembled on read. The reassembly consists of stripping out <<0>> from the beginning of each subsequent block in the remove_block_prefixes/2 function. The bug here is that we tell remove_block_prefixes that we're starting 1 byte into the current block instead of 5, so it ends up removing one good byte from the header and injecting one or more random <<0>>s. Headers larger than 4k are very rare and generally require a view group with a huge number of indexes or indexes with fairly large reductions, which explains why this bug has gone undetected until now. Closes COUCHDB-1319.
2011-10-31Fix retrieval of headers larger than 4kAdam Kocoloski
Our headers start with a <<1>> and then four bytes indicating the length of the header and its checksum. When the header is larger than 4090 bytes it will be split across multiple blocks in the file and will need to be reassembled on read. The reassembly consists of stripping out <<0>> from the beginning of each subsequent block in the remove_block_prefixes/2 function. The bug here is that we tell remove_block_prefixes that we're starting 1 byte into the current block instead of 5, so it ends up removing one good byte from the header and injecting one or more random <<0>>s. Headers larger than 4k are very rare and generally require a view group with a huge number of indexes or indexes with fairly large reductions, which explains why this bug has gone undetected until now. Closes COUCHDB-1319.
2011-10-25Fix SpiderMonkey source evaluationPaul J. Davis
Looks like we had a couple commits get crossed over during the merges. This removes the original version of the patch that wrapped JS functions with parens.
2011-10-24Fix SpiderMonkey source evaluationPaul J. Davis
Looks like we had a couple commits get crossed over during the merges. This removes the original version of the patch that wrapped JS functions with parens.
2011-10-23Hardcode couchjs binary namePaul Joseph Davis
Windows doesn't have the libgen.h header or an easily identified basename function. Instead of playing games we just configure the name with autoconf and run with that.
2011-10-20Fix object sealing with spidermonkey 1.7.0Robert Newson
2011-10-20Fix object sealing with spidermonkey 1.7.0Robert Newson
2011-10-20Update CHANGES and NEWS to reflect COUCHDB-1129Filipe David Manana
2011-10-20Fix JavaScript CLI test runner.Paul Joseph Davis
Accidentally inverted the logic of a test when patching for newer versions of SpiderMonkey.
2011-10-20Fix object sealing on sm 1.7.0Robert Newson
2011-10-19mention 1.8.5 support in NEWS/CHANGESRobert Newson
2011-10-18Revert "Build couchjs with C, not C++. Fixes libm error on CentOS."Adam Kocoloski
This reverts commit 6b26f47e8287b2d1c1d7b74199647dec2e7c2bef. Turns out the 'libm' error is a very obscure way of reporting a lack of a C++ compiler.
2011-10-18Minor fixes to link agianst SpiderMonkey trunkPaul Joseph Davis
This patch allows couchjs to link against the SpiderMonkey as it existed in the mercurial hash 59c1e6bdb11 from [1]. This does *not* ensure compatibility with CouchDB as there are other things that will also need to be fixed. Specifically, the anonymous function issue for builtin JS functions. [1] http://hg.mozilla.org/mozilla-central/
2011-10-18Prevent linking against too new of a SpiderMonkeyPaul Joseph Davis
Versions of SpiderMonkey newer than js185-1.0.0 have removed the JSOPTION_ANONFUNFIX which basically invalidates all CouchDB JavaScript functions ever written. This configure patch prevents the accidental linking to a library that has this new behavior while allowing people to forcefully override the check.
2011-10-18Merge pull request #77 from cloudant/12741-replication-seq-formatAdam Kocoloski
2011-10-18Merge pull request #76 from cloudant/12741-replication-seq-formatAdam Kocoloski