diff --git a/.changeset/improve-ws-buf.template b/.changeset/improve-ws-buf.template new file mode 100644 index 00000000..2cd18809 --- /dev/null +++ b/.changeset/improve-ws-buf.template @@ -0,0 +1,8 @@ +--- +"@empirica/core": patch +--- + +Improvements to websocket buffering: +- increased buffer size +- added a check to close the connection if the buffer keeps increasing in size + for 10s straight. \ No newline at end of file diff --git a/go.mod b/go.mod index 7313854c..c8f6515c 100644 --- a/go.mod +++ b/go.mod @@ -12,7 +12,7 @@ require ( github.com/charmbracelet/lipgloss v0.5.0 github.com/cortesi/moddwatch v0.0.0-20210323234936-df014e95c743 github.com/davecgh/go-spew v1.1.1 - github.com/empiricaly/tajriba v1.4.1 + github.com/empiricaly/tajriba v1.4.2 github.com/go-playground/validator/v10 v10.11.0 github.com/jpillora/backoff v1.0.0 github.com/json-iterator/go v1.1.12 diff --git a/go.sum b/go.sum index 10c5c07b..06bbfd9c 100644 --- a/go.sum +++ b/go.sum @@ -91,8 +91,8 @@ github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48 h1:fRzb/w+pyskVMQ+UbP35JkH8yB7MYb4q/qhBarqZE6g= github.com/dgryski/trifles v0.0.0-20200323201526-dd97f9abfb48/go.mod h1:if7Fbed8SFyPtHLHbg49SI7NAdJiC5WIA09pe59rfAA= -github.com/empiricaly/tajriba v1.4.1 h1:ki2Y+3ljg832n37X37Lj/VLuFSoLZc6GF7cmTviMkY4= -github.com/empiricaly/tajriba v1.4.1/go.mod h1:TqAM0iRbN78gE5vnZ1Ot6PQOidfYM5FwIdoU/UB+wrE= +github.com/empiricaly/tajriba v1.4.2 h1:FXFMxiBMgjxZJm+SYu73C2xNY/LrJ51yDpxdWYpKJAw= +github.com/empiricaly/tajriba v1.4.2/go.mod h1:TqAM0iRbN78gE5vnZ1Ot6PQOidfYM5FwIdoU/UB+wrE= github.com/envoyproxy/go-control-plane v0.9.0/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.1-0.20191026205805-5f8ba28d4473/go.mod h1:YTl/9mNaCwkRvm6d1a2C3ymFceY/DCBVvsKhRF0iEA4= github.com/envoyproxy/go-control-plane v0.9.4/go.mod h1:6rpuAdCZL397s3pYoYcLgu1mIlRU8Am5FuJP05cCM98=