mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
bump irc-go to fix buffering issue
This commit is contained in:
parent
eeb5f9b24d
commit
992a09dc90
4 changed files with 10 additions and 4 deletions
8
vendor/github.com/goshuirc/irc-go/ircreader/ircreader.go
generated
vendored
8
vendor/github.com/goshuirc/irc-go/ircreader/ircreader.go
generated
vendored
|
|
@ -66,8 +66,12 @@ func (cc *IRCReader) ReadLine() ([]byte, error) {
|
|||
return line, nil
|
||||
}
|
||||
|
||||
if cc.start == 0 && len(cc.buf) == cc.maxSize {
|
||||
return nil, ErrReadQ // out of space, can't expand or slide
|
||||
// are we out of space? we can read more if any of these are true:
|
||||
// 1. cc.start != 0, so we can slide the existing data back
|
||||
// 2. cc.end < len(cc.buf), so we can read data into the end of the buffer
|
||||
// 3. len(cc.buf) < cc.maxSize, so we can grow the buffer
|
||||
if cc.start == 0 && cc.end == len(cc.buf) && len(cc.buf) == cc.maxSize {
|
||||
return nil, ErrReadQ
|
||||
}
|
||||
|
||||
if cc.eof {
|
||||
|
|
|
|||
2
vendor/modules.txt
vendored
2
vendor/modules.txt
vendored
|
|
@ -21,7 +21,7 @@ github.com/go-sql-driver/mysql
|
|||
# github.com/gorilla/websocket v1.4.2
|
||||
## explicit
|
||||
github.com/gorilla/websocket
|
||||
# github.com/goshuirc/irc-go v0.0.0-20210223005429-8d38e43fc6ed
|
||||
# github.com/goshuirc/irc-go v0.0.0-20210301225436-2c4b83d64847
|
||||
## explicit
|
||||
github.com/goshuirc/irc-go/ircfmt
|
||||
github.com/goshuirc/irc-go/ircmsg
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue