Another command server issue
Detlev Offenbach
detlev at die-offenbachs.de
Fri Apr 18 09:22:55 UTC 2014
On Thursday 17 April 2014, 14:06:55 Matt Mackall wrote:
> On Thu, 2014-04-17 at 18:51 +0200, Detlev Offenbach wrote:
> > Hello,
> >
> > today I encountered another command server issue. The issue happened only
> > on Windows systems.
> >
> > My software is using the command server. For the log command I am using a
> > custom template. In the history there is a changeset, that has lots of
> > modified files. When retrieving all history data the output is fairly
> > big, i.e greater than 4096 bytes. This causes the command server to send
> > just the first 4092 bytes of data and than waiting for some input via the
> > L channel. In other such situations my IDE simply crashes, probably due
> > to trying to read more data than was sent.
>
> This seems.. improbable.
>
> For starters, there is no logic on the Mercurial side to limit the size
> of outgoing chunks to 4k (or any size at all). It is happy to send
> gigabyte-sized chunks and will do so when you ask it to cat a big file
> (which is why it uses a 32-bit size field). It's the receiver's job to
> buffer that appropriately.
>
> Secondly, there's no reason the log command would prompt for input.
I think the output is send via a pipe. Could it be that Windows is limiting the pipe size? As written
it works happily on Linux using identical code on the receiver's side. That's why I think, that the
receiver is not to blame. Any hint about what to look for would be appreciated as well.
Detlev
--
*Detlev Offenbach*
detlev at die-offenbachs.de
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20140418/2ad528d1/attachment-0002.html>
More information about the Mercurial
mailing list