Skip to content

Commit

Permalink
Properly close client connection
Browse files Browse the repository at this point in the history
- bump to v0.0.2
- add changelog
  • Loading branch information
synfinatic committed Dec 23, 2020
1 parent 52b3be4 commit da85c6f
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 1 deletion.
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# AlpacaScope Changelog

## Unreleased

## v0.0.2 - 2020-12-23

Fixed:
- Properly close Nexstar client TCP sockets that are no longer in use.

## v0.0.1 - 2020-12-22

Initial release
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ endif
BUILDINFOSDET ?=
PROGRAM_ARGS ?=

PROJECT_VERSION := 0.0.1
PROJECT_VERSION := 0.0.2
DOCKER_REPO := synfinatic
PROJECT_NAME := alpacascope
PROJECT_TAG := $(shell git describe --tags 2>/dev/null $(git rev-list --tags --max-count=1))
Expand Down
2 changes: 2 additions & 0 deletions cmd/nexstar.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,11 @@ func handleNexstar(conn net.Conn, t *alpaca.Telescope) {
}
rlen, err = conn.Read(buf)
}
// Will get this any time the client sends a Fin, so don't log that
if err.Error() != "EOF" {
log.Errorf("conn.Read() returned error: %s", err.Error())
}
conn.Close()
}

func process_command(t *alpaca.Telescope, len int, buf []byte) string {
Expand Down

0 comments on commit da85c6f

Please sign in to comment.