Browse Source

Reduce connection timeout to a more sensible number

tags/v0.4.3
Russ Garrett 5 years ago
parent
commit
e6ab9279b1
No account linked to committer's email address
1 changed files with 2 additions and 0 deletions
  1. 2
    0
      irc.go

+ 2
- 0
irc.go View File

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

Loading…
Cancel
Save