incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Adam Kocoloski <kocol...@apache.org>
Subject Re: Timeout using Erlang views with large documents
Date Fri, 20 Dec 2013 15:10:12 GMT
Hey folks, back to the original question, the native process gen_server respects the timeout
internally but the public API in the module still makes a gen_server:call with the default
5 second timeout:

https://github.com/apache/couchdb/blob/1.5.0/src/couchdb/couch_native_process.erl#L62-L63

Contrast this with the OS process version where it sets the timeout on the client call to
infinity (thus leaving it to the server to control the flow):

https://github.com/apache/couchdb/blob/1.5.0/src/couchdb/couch_os_process.erl#L51-L58

Teaching the native_process API to do the same would be a welcome change.  Is there a JIRA
for this one already?

Adam


Mime
View raw message