1
0
forked from bip/bip

Compare commits

...

4 Commits

Author SHA1 Message Date
Loïc Gomez
2824b8da7e
Update copyright info, add contributors
Signed-off-by: Loïc Gomez <bip@animanova.fr>
2024-02-18 00:15:08 +01:00
Loïc Gomez
edd460a8fa
Set default recon_timer (and step) to 30s
Waiting 2 minutes on the first disconnect is depressing.
With this the maximum of 10min wait time is reached after 20 attempts
instead of the current 5 attempts.

Signed-off-by: Loïc Gomez <bip@animanova.fr>
2024-02-18 00:07:41 +01:00
Loïc Gomez
4cd5bdb381
Set default backlog_lines = 0 (fixes Debian bug #818374)
This would have defaults move to backlog_always=false / log=true /
backlog_lines=0, which should not cause much trouble as backlog will
be reset after being displayed.

Also, it is doubtfuk anyone would be keeping the default of 10 for
backlog as it is pretty much an undesirable configuration.

We need to annouce this change as important though, so users having
log = false are aware memory usage could increase if they don't set
it manually to another value.

Signed-off-by: Loïc Gomez <bip@animanova.fr>
2024-02-17 03:29:45 +01:00
c6a872ed61
Add bipgenconfig.1 to dist_man_MANS
Fix 1df884545f
2022-03-20 11:42:09 +01:00
7 changed files with 32 additions and 11 deletions

View File

@ -1,4 +1,4 @@
bip copyright 2004 2005 Arnaud Cornet and Loïc Gomez, is released under the BIP copyright 2004-2024 Arnaud Cornet and Loïc Gomez, is released under the
terms of the GNU GPL, License that you can find below. terms of the GNU GPL, License that you can find below.
Specific permission is granted for the GPLed code in this distribution to Specific permission is granted for the GPLed code in this distribution to

View File

@ -3,7 +3,7 @@ if COND_WANT_TESTS
endif endif
SUBDIRS = src . $(MAYBE_TESTS) SUBDIRS = src . $(MAYBE_TESTS)
dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1 dist_man_MANS = bip.1 bip.conf.5 bipmkpw.1 bipgenconfig.1
examplesdir = $(prefix)/share/doc/bip/examples/ examplesdir = $(prefix)/share/doc/bip/examples/
dist_examples_DATA = samples/bip.conf samples/bip.vim dist_examples_DATA = samples/bip.conf samples/bip.vim

27
README
View File

@ -19,6 +19,9 @@ Table of contents :
A. Connecting your client(s) A. Connecting your client(s)
B. Backlog and flood control B. Backlog and flood control
C. Multiple users and ident issues C. Multiple users and ident issues
V. The Team
A. Authors
B. Contributors for code, reviews, hosting, ...
@ -218,7 +221,25 @@ IV. USING BIP
ip address. ip address.
V. THE TEAM
A. Authors
- Arnaud Cornet <nohar@t1r.net>
- Loïc Gomez <bip@animanova.fr>
B. Contributors for code, reviews, hosting, ...
nohar Arnaud Cornet <nohar@t1r.net>
Kyoshiro Loïc Gomez <bip@animanova.fr>
pilou Pierre-Louis Bonicoli <pilou@ir5.eu>
Duck Marc Dequènes <Duck@DuckCorp.org>
YS Yannick Schaus
Unit 193 <unit193@debian.org>
If you have contributed to BIP IRC Proxy one way or the other and don't
appear in that list, please file a bug on the tracker or even better,
a pull request.
Happy ircing! Happy ircing!
-- Arnaud Cornet <nohar@t1r.net> and Loïc Gomez <opensource@kyoshiro.org>

View File

@ -146,7 +146,7 @@ Defines the delay between each logfiles sync to the disk. Must be a non null
positive integer. positive integer.
.TP .TP
\fBreconn_timer\fP (default: \fB120\fP) \fBreconn_timer\fP (default: \fB30\fP)
Defines the initial delay (in seconds) before a reconnection attempt. Defines the initial delay (in seconds) before a reconnection attempt.
The delay increases with the number of attempts: The delay increases with the number of attempts:
delay = reconn_timer * number of attempts delay = reconn_timer * number of attempts
@ -227,7 +227,7 @@ This option should of course not be enabled if \fBbacklog_lines\fP is 0 !
If you still want to do so, don't forget to \fB/BIP BLRESET\fP sometimes. If you still want to do so, don't forget to \fB/BIP BLRESET\fP sometimes.
.TP .TP
\fBbacklog_lines\fP (default: \fB10\fP) \fBbacklog_lines\fP (default: \fB0\fP)
If set to 0, BIP will replay all the logs since last client disconnect. Else, If set to 0, BIP will replay all the logs since last client disconnect. Else,
it'll replay exactly \fBbacklog_lines\fP lines on each channel and privates. it'll replay exactly \fBbacklog_lines\fP lines on each channel and privates.
Be aware that BIP will replay \fBbacklog_lines\fP lines of all privates, even Be aware that BIP will replay \fBbacklog_lines\fP lines of all privates, even

View File

@ -86,7 +86,7 @@
# Sets the initial delay (in seconds) before a reconnection attempt. # Sets the initial delay (in seconds) before a reconnection attempt.
# The delay increases with the number of attempts: # The delay increases with the number of attempts:
# delay = reconn_timer * number of attempts # delay = reconn_timer * number of attempts
#reconn_timer = 120; #reconn_timer = 30;
# Network definition, a name and server info # Network definition, a name and server info
#network { #network {

View File

@ -119,7 +119,7 @@ my %optdesc = (
'optional' => 1, 'optional' => 1,
'depends' => 'log', 'depval' => 'true', 'depends' => 'log', 'depval' => 'true',
'desc' => 'Do you want to activate backlog {play back logs} system ?' }, 'desc' => 'Do you want to activate backlog {play back logs} system ?' },
'backlog_lines' => { 'type' => 'i', 'adv' => 0, 'default' => '10', 'backlog_lines' => { 'type' => 'i', 'adv' => 0, 'default' => '0',
'optional' => 1, 'optional' => 1,
'depends' => 'backlog', 'depval' => 'true', 'depends' => 'backlog', 'depval' => 'true',
'desc' => 'How much line do you want bip to play back upon client connect' . 'desc' => 'How much line do you want bip to play back upon client connect' .

View File

@ -19,7 +19,7 @@
#define DEFAULT_BACKLOG 1 #define DEFAULT_BACKLOG 1
#define DEFAULT_ALWAYS_BACKLOG 0 #define DEFAULT_ALWAYS_BACKLOG 0
#define DEFAULT_BL_MSG_ONLY 0 #define DEFAULT_BL_MSG_ONLY 0
#define DEFAULT_BACKLOG_LINES 10 #define DEFAULT_BACKLOG_LINES 0
#define DEFAULT_BACKLOG_TIMESTAMP BLTSTime #define DEFAULT_BACKLOG_TIMESTAMP BLTSTime
#define DEFAULT_BLRESET_ON_TALK 0 #define DEFAULT_BLRESET_ON_TALK 0
#define DEFAULT_BLRESET_CONNECTION 0 #define DEFAULT_BLRESET_CONNECTION 0
@ -29,6 +29,6 @@
#define DEFAULT_LOG_LEVEL LOG_INFO #define DEFAULT_LOG_LEVEL LOG_INFO
#define DEFAULT_LOG_FORMAT "%u/%n/%Y-%m/%c.%d.log" #define DEFAULT_LOG_FORMAT "%u/%n/%Y-%m/%c.%d.log"
#define DEFAULT_BIP_USE_NOTICE 0 #define DEFAULT_BIP_USE_NOTICE 0
#define DEFAULT_RECONN_TIMER 120 #define DEFAULT_RECONN_TIMER 30
#endif /* DEFAULTS_H */ #endif /* DEFAULTS_H */