Skip to content

Commit

Permalink
Fixed telnettest panic handle read request error
Browse files Browse the repository at this point in the history
  • Loading branch information
outdead committed Jan 5, 2021
1 parent 4aa2c56 commit 40b5033
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ All notable changes to this project will be documented in this file.

## [Unreleased]

## [v1.2.2] - 2021-01-06
### Fixed
- Fixed telnettest panic "handle read request error"

## [v1.2.1] - 2021-01-06
### Updated
- Updated golangci linter to 1.33 version
Expand Down Expand Up @@ -42,7 +46,8 @@ job was joined with tests workflow.
### Added
- Initial implementation.

[Unreleased]: https://github.com/gorcon/telnet/compare/v1.2.1...HEAD
[Unreleased]: https://github.com/gorcon/telnet/compare/v1.2.2...HEAD
[v1.2.2]: https://github.com/gorcon/telnet/compare/v1.2.1...v1.2.2
[v1.2.1]: https://github.com/gorcon/telnet/compare/v1.2.0...v1.2.1
[v1.2.0]: https://github.com/gorcon/telnet/compare/v1.1.0...v1.2.0
[v1.1.0]: https://github.com/gorcon/telnet/compare/v1.0.1...v1.1.0
Expand Down
2 changes: 1 addition & 1 deletion telnettest/server.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ func (s *Server) handle(conn net.Conn) {
scanned := scanner.Scan()
if !scanned {
if err := scanner.Err(); err != nil {
if errors.Is(err, io.EOF) {
if !errors.Is(err, io.EOF) {
panic(fmt.Errorf("handle read request error: %w", err))
}

Expand Down

0 comments on commit 40b5033

Please sign in to comment.