Issue 52 in shellinabox: emacs refresh is slow through shellinabox

45 views
Skip to first unread message

shell...@googlecode.com

unread,
Feb 16, 2010, 2:14:06 PM2/16/10
to shell...@googlegroups.com
Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 52 by riccardi.thomas: emacs refresh is slow through shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

First, thank you for your easy to setup & use web shell.


So here is the issue:

What steps will reproduce the problem?
1. login
2. start emacs -Q
3. wait for lines to appear

What is the expected output? What do you see instead?
Each line of the interface takes 1 to 2 seconds to display, instead of the
normal speed of refresh
(several thousands lines per second when not in emacs).

What version of the product are you using? On what operating system?
I'm using shellinabox_2.10-1_amd64.deb on debian testing.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

shell...@googlecode.com

unread,
Mar 1, 2010, 3:57:03 AM3/1/10
to shell...@googlegroups.com

Comment #1 on issue 52 by elibarzi: emacs refresh is slow through
shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

I have seen the same behavior. Running with --debug, it looks like there
is a
one-second query per line, which happens every time Emacs is trying to
refresh
the screen. Another weird thing that I've noticed is that the rate is
*exactly*
one line per second -- so there might be some 1s delay somewhere in the
code...

shell...@googlecode.com

unread,
Oct 2, 2010, 7:59:12 PM10/2/10
to shell...@googlegroups.com

Comment #2 on issue 52 by zod...@gmail.com: emacs refresh is slow through
shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

Can you check again if the problem still exists. I just fixed a bug that
might be related to your problem (which incidentally, I have been unable to
reproduce myself).

shell...@googlecode.com

unread,
Oct 3, 2010, 12:09:53 AM10/3/10
to shell...@googlegroups.com

Comment #3 on issue 52 by elibarzi: emacs refresh is slow through
shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

I re-tried it using the code from svn, and it's still slow.

I don't remember exactly the details last time, but one thing that I tried
now is
running Emacs with my default environment, which uses a white-on-black
color scheme.
(The colors work fine, only the delays are an issue). Then I tried with a
-q, and
looking at some random file it looked like delays happen when there's
colors. I
disabled font-lock-mode and that made it usable again.


shell...@googlecode.com

unread,
Oct 3, 2010, 8:16:19 AM10/3/10
to shell...@googlegroups.com

Comment #4 on issue 52 by riccardi.thomas: emacs refresh is slow through
shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

I also retried with svn r239: it's still slow. And exactly like elibarzi,
when disabling colors it is usable again on some files, but not all:

I opened a large html file, and the issue is still there.

When resizing the webbrowser window, the loading time changes: when the
window is small (80x46), it's fast (probably loaded in one time), and when
the window is large (163x46), it's slow (it seems to be loaded per small
blocs, with a delay of about 1 sec between each bloc).

The color decreases the window size at which the loading is not
instantaneous.

So it seems to be a maximum size of data sent, colored text being larger
than just b&w text.


I tried to increase #define MAX_RESPONSE, but it changed nothing (loading
cut in blocs in the same way).


With wireshark we can see that one ssh packet is sent every exactly 1 sec,
with a length of 224 bytes, when loading a slow file in emacs.

So the issue is not between shellinabox and the webbrowser, but definitely
between the ssh daemon and shellinabox.

shell...@googlecode.com

unread,
Oct 3, 2010, 10:34:33 PM10/3/10
to shell...@googlegroups.com

Comment #5 on issue 52 by elibarzi: emacs refresh is slow through
shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

FWIW, I was using the LOGIN service, without SSL.

shell...@googlecode.com

unread,
Jun 20, 2012, 3:45:39 PM6/20/12
to shell...@googlegroups.com

Comment #6 on issue 52 by Otto.Lin...@gmail.com: emacs refresh is slow
through shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

This bug is still not fixed. Does anybody looking for it?


shell...@googlecode.com

unread,
Feb 19, 2013, 6:05:59 AM2/19/13
to shell...@googlegroups.com

Comment #7 on issue 52 by M.A....@gmx.de: emacs refresh is slow through
shellinabox
http://code.google.com/p/shellinabox/issues/detail?id=52

try playing with 'stty speed'

e.g.
$ stty speed 38400

@zodiac:
Maybe a default Terminal speed would be good, even if it only fixes some
emacs issue...

--
You received this message because this project is configured to send all
issue notifications to this address.
You may adjust your notification preferences at:
https://code.google.com/hosting/settings

shell...@googlecode.com

unread,
Mar 11, 2015, 11:34:17 AM3/11/15
to shell...@googlegroups.com

Comment #8 on issue 52 by luka.kra...@gmail.com: emacs refresh is slow
through shellinabox
https://code.google.com/p/shellinabox/issues/detail?id=52

Hi, we have this added in our code. Please see
https://github.com/shellinabox/shellinabox

Bye :)
Reply all
Reply to author
Forward
0 new messages