all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: process output has become a bit random...
Date: 01 Aug 2004 02:28:38 +0200	[thread overview]
Message-ID: <x5d62bn1l5.fsf@lola.goethe.zz> (raw)
In-Reply-To: <x5r7quwmvz.fsf@lola.goethe.zz>

[-- Attachment #1: Type: text/plain, Size: 625 bytes --]

David Kastrup <dak@gnu.org> writes:

> storm@cua.dk (Kim F. Storm) writes:
> 
> > storm@cua.dk (Kim F. Storm) writes:
> > 
> > > Could you try to set readmax to 1024 ?
> > >
> > > That may break UDP packet receive, but it isn't relevant for this case.
> > 
> > 
> > Could you also try the following patch (with readmax=4096).
> > 
> > I don't expect it to make a lot of difference, but just to rule out
> > the obvious...
> 
> [...]
> 
> Sorry for the delay, had to go climbing.  The patch does not cure the
> problem.  The problem still occurs with comparable severity.

However, the following patch cures everything then:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: Type: text/x-patch, Size: 463 bytes --]

--- coding.c	22 Jun 2004 11:22:11 +0200	1.305
+++ coding.c	01 Aug 2004 02:17:32 +0200	
@@ -5330,7 +5330,7 @@
 /* As shrinking conversion region requires some overhead, we don't try
    shrinking if the length of conversion region is less than this
    value.  */
-static int shrink_conversion_region_threshhold = 1024;
+static int shrink_conversion_region_threshhold = 4100;
 
 #define SHRINK_CONVERSION_REGION(beg, end, coding, str, encodep)	\
   do {									\

[-- Attachment #3: Type: text/plain, Size: 364 bytes --]


This might explain why the changes in buffer size that I did
previously triggered problems: that way the buffer could get larger
than this threshold of 1024 bytes.  It would appear that as soon as
shrink_decoding_region is called via SHRINK_CONVERSION_REGION in
decode-coding-string, things start going haywire.

-- 
David Kastrup, Kriemhildstr. 15, 44793 Bochum

[-- Attachment #4: Type: text/plain, Size: 142 bytes --]

_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel

  reply	other threads:[~2004-08-01  0:28 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-28 16:44 process output has become a bit random David Kastrup
2004-07-28 22:43 ` Peter Heslin
2004-07-28 23:40   ` Kim F. Storm
2004-07-29  6:14     ` David Kastrup
2004-07-29  8:21       ` Kim F. Storm
2004-07-29 10:29         ` Peter Heslin
2004-07-29 10:45           ` David Kastrup
2004-07-29 10:55 ` Lars Hansen
2004-07-29 11:08   ` David Kastrup
2004-07-29 12:02     ` Kim F. Storm
2004-07-29 12:12       ` David Kastrup
2004-07-29 12:26         ` Ralf Angeli
2004-07-29 12:31           ` David Kastrup
2004-07-29 12:43             ` Ralf Angeli
2004-07-29 12:49               ` David Kastrup
2004-07-29 13:05                 ` Kenichi Handa
2004-07-29 13:16                   ` David Kastrup
2004-07-29 14:09                 ` David Kastrup
2004-07-29 14:20                   ` Kim F. Storm
2004-07-29 14:57                     ` David Kastrup
2004-07-29 14:58                     ` Kim F. Storm
2004-07-29 20:59                       ` David Kastrup
2004-08-01  0:28                         ` David Kastrup [this message]
2004-08-01 23:49                           ` Kim F. Storm
2004-08-02  0:03                           ` Kenichi Handa
2004-08-03  1:44                             ` Kenichi Handa
2004-08-03  2:07                               ` David Kastrup
2004-08-03  5:20                                 ` Kenichi Handa
2004-08-03 10:49                                   ` David Kastrup

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x5d62bn1l5.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.