1
0
mirror of https://github.com/rkd77/elinks.git synced 2025-01-03 14:57:44 -05:00
Go to file
Scott Mcdermott 50841ff75f [interlink] speed up first elinks, and use pipe trigger for fork_on_start
When the first elinks session starts (whether fork_on_start or not), it
tries to connect on AF_UNIX socket, to see if an existing master is
present.  The current code implements a retry loop with linear-increase
retry backoff, 50ms *= attempts, with 3 attempts, total delay 300ms,
before concluding master is not present.

After forking for fork_on_start, we do have to wait for the new master
to finish setup, so we can connect to it.  This is the case where retry
loop might be useful.  However in fork_on_start=0 case, there should be
no reason to ever wait: if we get ECONNREFUSED or ENOENT, the master
simply is not there, we can go on about our business as the master.

With fork_on_start=1 however, we will race with the child (that will
become the new master), which has to complete its socket/bind/listen
sequence.  Therefore we typically have to wait another 50ms (first
attempt delay), for a total of 350ms delay.

In both cases, there does not seem to be a purpose to the initial
connection attempt retry.  Conclusion after connect() failure should be
authoritative: there is no master.  We do not race with anyone.

If we have done fork_on_start and have to wait, we can instead open a
pipe before forking, and wait for the "new" master (its child) to send
us a byte over the pipe.  Thus, we do not need to poll, but can simply
block until we get the trigger, to indicate that AF_UNIX socket setup
has completed.

This speeds up the first start of elinks by 300ms for fork_on_start=0,
and between 300-350ms for fork_on_start=1 (or possibly more, if the
machine is loaded and child did not finish AF_UNIX setup in first 50ms).

(cherry picked from commit 3d1f020a3b)
2024-10-04 16:23:09 +02:00
config [build] Update config.guess, config.sub and install-sh 2022-08-02 20:10:55 +08:00
contrib [tcc] Skip -Wl,--no-copy-dt-needed-entries 2023-12-01 12:54:07 +01:00
cross [cross] Added file for mingw 32bit 2023-11-08 20:12:30 +01:00
doc Eliminate sed(1) GNUism 2024-10-03 15:38:21 +02:00
docker [win64] Updated curl 2023-12-07 13:03:48 +01:00
po [NEWS] 0.17.0rc1 2023-12-02 09:06:50 +01:00
src [interlink] speed up first elinks, and use pipe trigger for fork_on_start 2024-10-04 16:23:09 +02:00
test [spidermonkey] window.event 2023-09-21 17:38:56 +02:00
Unicode Unicode/gen-case: Upgrade ISC licence to July 2007 version 2012-11-03 23:01:28 +02:00
.gitignore [git] Added *.obj to .gitignore 2022-12-23 17:26:30 +01:00
.mailmap Add .mailmap file to help git-shortlog 2007-04-15 22:08:11 +02:00
ABOUT-NLS Initial commit of the HEAD branch of the ELinks CVS repository, as of 2005-09-15 15:58:31 +02:00
AUTHORS po/sr.po: Update to Serbian translation; AUTHORS: Update Strahinya Radich's email aaddress 2021-11-25 17:40:01 +01:00
autogen.sh Add -I config/m4 to aclocal. 2017-11-25 20:58:26 +01:00
BUGS [bugs] github address 2021-08-24 10:39:32 +02:00
build.sh [ build ] lin64 js docker and automatic build 2022-05-25 23:59:07 +02:00
ChangeLog Changed version. 2019-12-27 17:33:27 +01:00
config2.h.in [getpid] Removed check for HAVE_GETPID 2024-10-04 16:22:12 +02:00
configure.ac [getpid] Removed check for HAVE_GETPID 2024-10-04 16:22:12 +02:00
COPYING Rename configure.in to configure.ac 2017-11-22 17:01:48 -05:00
features.conf [configure] Remove outdated information 2020-07-05 12:26:55 +02:00
git-dirty.sh [configure.ac] Added --with-quickjs option 2021-11-24 17:18:02 +01:00
GOALS Some goals for dvelopment 2017-11-29 17:38:39 +01:00
INSTALL [config] Changed in more places ~/.elinks -> ~/.config/elinks 2023-01-26 12:41:46 +01:00
Makefile Rename configure.in to configure.ac 2017-11-22 17:01:48 -05:00
Makefile.config.in [Makefile] CXX was missing 2023-11-29 18:24:52 +01:00
Makefile.lib [conifgure.ac] Try to link using CXX. Refs #184 2022-08-16 17:36:13 +02:00
meson_options.txt [meson] Added -Ddoc option, default true 2023-12-23 14:12:46 +01:00
meson.build [getpid] Removed check for HAVE_GETPID 2024-10-04 16:22:12 +02:00
NEWS [NEWS] 0.17.0 2023-12-25 12:25:27 +01:00
README.md Remove redundant README 2023-04-13 19:32:21 +05:30
SITES [SITES] Info about mailing list 2022-12-28 08:35:11 +01:00
test.sh [ build ] win64 docker env, http server 2022-04-24 09:53:42 +02:00
THANKS THANKS: Remove link to HSTI webpage as the domain is for sale. 2006-11-08 20:53:01 +02:00
TODO [todo] github url 2021-08-24 13:53:21 +02:00

ELinks - an advanced web browser


ELinks is an advanced and well-established feature-rich text mode web
(HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly
customizable and can be extended via scripts. It is very portable and runs
on a variety of platforms.

The ELinks official website is available at

	http://elinks.cz/

Please see the SITES file for mirrors or other recommended sites.  If you
want to install ELinks on your computer, see the INSTALL file for further
instructions.

A good starting point is documentation files available in doc/, especially the
file index.txt.

If you want to request features or report bugs, see community information at
http://elinks.cz/community.html and feedback information available at
http://elinks.cz/feedback.html.

If you want to write some patches, please first read the doc/hacking.txt
document.

If you want to add a new language or update the translation for an existing
one, please read po/README document.

If you want to write some documentation, well, you're welcome! ;)



Historical notes
~~~~~~~~~~~~~~~~

Initially, ELinks was a development version of Links (Lynx-like text WWW
browser), with more liberal features policy and development style.  Its purpose
was to provide an alternative to Links, and to test and tune various new
features, but still provide good rock-solid releases inside stable branches.

Why not contribute to Links instead?  Well, first I made a bunch of patches for
the original Links, but Mikulas wasn't around to integrate them, so I started
releasing my fork. When he came back, a significant number of them got refused
because Mikulas did not like them as he just wouldn't have any use for them
himself.  He aims to keep Links at a relatively closed feature set and merge
only new features which he himself needs.  It has the advantage that the tree is
very narrow and the code is small and contains very little bloat.

ELinks, on the contrary, aims to provide a full-featured web browser, superior
to both lynx and w3m and with the power (but not slowness and memory usage) of
Mozilla, Konqueror and similar browsers. However, to prevent drastic bloating
of the code, the development is driven in the course of modularization and
separation of add-on modules (like cookies, bookmarks, ssl, scripting etc).

For more details about ELinks history, please see

	http://elinks.cz/history.html

If you are more interested in the history and various Links clones and versions,
you can examine the website at

	http://links.sf.net/

Old ELinks team lost interest in ELinks development somehow. felinks (fork of 
elinks) is continuation of elinks based on the master branch of the original 
elinks repo with main releases (new features and other incompatible changes) no 
more often than 1 yearly, and point releases (bugfixes) no more often than once 
a month.

Repository was renamed to elinks on 2020-12-01 with Petr's approval.

Main repo is at

	https://github.com/rkd77/elinks.git


vim: textwidth=80