Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into v24docs
Browse files Browse the repository at this point in the history
  • Loading branch information
gcla committed Jul 11, 2022
2 parents 0e22fd0 + e8de021 commit 68b2ba1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
### Changed

- Now you can build and install termshark with one command: `go install github.com/gcla/termshark/v2/cmd/termshark`
- Fixed a bug that resulted in stream reassembly sporadically failing and displaying a blank screen.
- Termshark will now, by default, suppress errors from tshark. You can change this via the minibuffer
`set suppress-tshark-errors` command.
- Added a summary of standard error to the error dialogs displayed when a tshark process fails to run
Expand Down
5 changes: 2 additions & 3 deletions cmd/termshark/termshark.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ import (
"github.com/blang/semver"
"github.com/gcla/gowid"
"github.com/gcla/termshark/v2"
"github.com/gcla/termshark/v2/pkg/cli"
"github.com/gcla/termshark/v2/configs/profiles"
"github.com/gcla/termshark/v2/pkg/capinfo"
"github.com/gcla/termshark/v2/pkg/cli"
"github.com/gcla/termshark/v2/pkg/confwatcher"
"github.com/gcla/termshark/v2/pkg/convs"
"github.com/gcla/termshark/v2/pkg/fields"
Expand All @@ -41,7 +41,6 @@ import (
"github.com/mattn/go-isatty"
"github.com/shibukawa/configdir"
log "github.com/sirupsen/logrus"
"github.com/spf13/viper"

"net/http"
_ "net/http"
Expand Down Expand Up @@ -1357,7 +1356,7 @@ Loop:

case <-watcher.ConfigChanged():
// Re-read so changes that can take effect immediately do so
if err := viper.ReadInConfig(); err != nil {
if err := profiles.ReadDefaultConfig(dirs[0].Path); err != nil {
log.Warnf("Unexpected error re-reading toml config: %v", err)
}
ui.UpdateRecentMenu(app)
Expand Down
6 changes: 3 additions & 3 deletions pkg/streams/loader.go
Original file line number Diff line number Diff line change
Expand Up @@ -205,9 +205,9 @@ func (c *Loader) loadStreamReassemblyAsync(pcapf string, proto string, idx int,

log.Infof("Started stream reassembly command %v with pid %d", c.streamCmd, c.streamCmd.Pid())

termshark.TrackedGo(func() {
defer func() {
termChan <- c.streamCmd.Wait()
}, Goroutinewg)
}()

pid = c.streamCmd.Pid()
procChan <- pid
Expand All @@ -219,7 +219,7 @@ func (c *Loader) loadStreamReassemblyAsync(pcapf string, proto string, idx int,
func() {
_, err := ParseReader("", streamOut, ops...)
if err != nil {
log.Infof("Stream parser reported error: %v", err)
log.Warnf("Stream parser reported error: %v", err)
}
}()

Expand Down

0 comments on commit 68b2ba1

Please sign in to comment.