all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "João Távora" <joaotavora@gmail.com>
To: Eli Zaretskii <eliz@gnu.org>
Cc: jurgen.de-backer.ext@eurocontrol.int,
	Daniel Pettersson <daniel@dpettersson.net>,
	74338@debbugs.gnu.org
Subject: bug#74338: 29.1; JSON RPC timeout too short in some cases
Date: Sat, 23 Nov 2024 19:53:23 +0000	[thread overview]
Message-ID: <CALDnm52jnUNEiH0q1-vjnr2B4iB4jx1sCRH_zWNYmDWtH_NfoQ@mail.gmail.com> (raw)
In-Reply-To: <86plmmkrna.fsf@gnu.org>

On Sat, Nov 23, 2024 at 1:26 PM Eli Zaretskii <eliz@gnu.org> wrote:
>
> > From: Daniel Pettersson <daniel@dpettersson.net>
> > Cc: Jurgen De Backer <jurgen.de-backer.ext@eurocontrol.int>,
> >   74338@debbugs.gnu.org
> > Date: Sat, 23 Nov 2024 01:23:16 +0100
> >
> > Eli Zaretskii <eliz@gnu.org> writes:
> >
> > >> Date: Wed, 13 Nov 2024 12:43:20 +0000
> > >> From:  Jurgen De Backer via "Bug reports for GNU Emacs,
> > >>  the Swiss army knife of text editors" <bug-gnu-emacs@gnu.org>
> > >>
> > >>
> > >> Hi,
> > >> When using emacs together with eglot/ada_language_server,
> > >> some requests may take longer than the 10 seconds specified in
> > >> jsonrpc.el (defconst jsonrpc-default-request-timeout 0).
> > >> It would be better to be able to change this default value.
> > >
> > > Daniel, any comments or suggestions?  Maybe we should make that
> > > variable a defcustom?
> >
> > No real harm in converting it, it might be better of it was configured
> > on eglot as eglot-default-request-timeout but that would require some
> > work in eglot I believe.  The argument against it is that it could
> > have unintended consequences for other users of jsonrpc, but I think
> > it's something we can live with.
>
> João, any reasons not to make this variable a defcustom?

Not at all, if you're talking about jsonrpc-default-request-timeout,
but that's up to Daniel jsonrpc.el maintainer.

I'm against introducing eglot-default-request-timeout .  If your servers
are  really that slow, just increase the default timeout (what's the harm?)
or set jsonrpc-default-request-timeout buffer-locally in
eglot-managed-mooe.

João Távora





  reply	other threads:[~2024-11-23 19:53 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-11-13 12:43 bug#74338: 29.1; JSON RPC timeout too short in some cases Jurgen De Backer via Bug reports for GNU Emacs, the Swiss army knife of text editors
2024-11-14  7:43 ` Eli Zaretskii
2024-11-23  0:23   ` Daniel Pettersson
2024-11-23 13:26     ` Eli Zaretskii
2024-11-23 19:53       ` João Távora [this message]
2024-11-23 20:16         ` Eli Zaretskii

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=CALDnm52jnUNEiH0q1-vjnr2B4iB4jx1sCRH_zWNYmDWtH_NfoQ@mail.gmail.com \
    --to=joaotavora@gmail.com \
    --cc=74338@debbugs.gnu.org \
    --cc=daniel@dpettersson.net \
    --cc=eliz@gnu.org \
    --cc=jurgen.de-backer.ext@eurocontrol.int \
    /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.