Sfoglia il codice sorgente

Reduce connection timeout to a more sensible number

tags/v0.4.3
Russ Garrett 5 anni fa
parent
commit
e6ab9279b1
Nessun account collegato all'indirizzo email del committer
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2
    0
      irc.go

+ 2
- 0
irc.go Vedi File

@@ -6,6 +6,7 @@ import (
6 6
 	"github.com/irccloud/go-ircevent"
7 7
 	"github.com/spf13/viper"
8 8
 	"strings"
9
+	"time"
9 10
 )
10 11
 
11 12
 func (i *IRCCat) connectIRC(debug bool) error {
@@ -13,6 +14,7 @@ func (i *IRCCat) connectIRC(debug bool) error {
13 14
 	i.irc = irccon
14 15
 
15 16
 	irccon.Debug = debug
17
+	irccon.Timeout = time.Second * 15
16 18
 	irccon.RequestCaps = []string{"away-notify", "account-notify", "draft/message-tags-0.2"}
17 19
 	irccon.UseTLS = viper.GetBool("irc.tls")
18 20
 

Loading…
Annulla
Salva