Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
I
irker
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
iDB
irker
Commits
e7d4d556
Commit
e7d4d556
authored
9 years ago
by
Eric S. Raymond
Browse files
Options
Downloads
Patches
Plain Diff
Add a reconnect delay (Debian bug #749650).
parent
b49f1c63
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
NEWS
+3
-0
3 additions, 0 deletions
NEWS
irkerd
+2
-0
2 additions, 0 deletions
irkerd
with
5 additions
and
0 deletions
NEWS
+
3
−
0
View file @
e7d4d556
irker history
Repository head:
Add a reconnect delay (Debian bug #749650).
2.16: 2016-02-18
Code now runs under either Python 2 or Python 3
...
...
This diff is collapsed.
Click to expand it.
irkerd
+
2
−
0
View file @
e7d4d556
...
...
@@ -40,6 +40,7 @@ CHANNEL_MAX = 18 # Max channels open per socket (default)
ANTI_FLOOD_DELAY
=
1.0
# Anti-flood delay after transmissions, seconds
ANTI_BUZZ_DELAY
=
0.09
# Anti-buzz delay after queue-empty check
CONNECTION_MAX
=
200
# To avoid hitting a thread limit
RECONNECT_DELAY
=
3
# Don't spam servers with connection attempts
# No user-serviceable parts below this line
...
...
@@ -590,6 +591,7 @@ class Connection:
except
IRCServerConnectionError
as
e
:
LOG
.
error
(
"
irkerd: %s
"
%
e
)
self
.
status
=
"
expired
"
time
.
sleep
(
RECONNECT_DELAY
)
break
elif
self
.
status
==
"
handshaking
"
:
if
time
.
time
()
>
self
.
last_xmit
+
HANDSHAKE_TTL
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment