couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Anderson <jch...@apache.org>
Subject Re: Query server perfromance issues ..
Date Sun, 20 Sep 2009 21:46:51 GMT
On Sat, Sep 19, 2009 at 10:47 PM, Paul Davis
<paul.joseph.davis@gmail.com> wrote:
>
> PS. I hope every appreciates the significance of 174.

heh. what's 174?

>
> $ svn diff
> Index: share/server/loop.js
> ===================================================================
> --- share/server/loop.js        (revision 816983)
> +++ share/server/loop.js        (working copy)
> @@ -48,6 +48,7 @@
>
>  while (line = eval(readline())) {
>   cmd = eval(line);
> +  if(cmd == null) quit(174);

the problem with this test is that the cmd being null means the that
on-the-wire string said "null".

It may be that we're flushing the socket with no data, and the Scala
server is interpreting that as null input. The JS client uses
readline() implemented in C, so it shouldn't have access to data until
a line break has been sent by CouchDB.

Chris

>   line_length = line.length;
>   try {
>     cmdkey = cmd.shift();
>
>

-- 
Chris Anderson
http://jchrisa.net
http://couch.io

Mime
View raw message