Skip to content

Commit

Permalink
Active socket, implementation with state machine (#68)
Browse files Browse the repository at this point in the history
* Switch to gen_statem for MLLP.Client

* Added Unit test for detection of disconnected receiver

* Replaced some mock tests with real ones

* Make sure socket is invalidated on reconnection

* Fix flaky test (disconnect on server side could result either in :closed or :einval depending on timing of send call)

* Add 'responses match requests' test for concurrent requests

* Fix TestDispatcher (ask receiver to slow down, if we want it to)

* Handle 'data after trailer' case

* Switch backoff tests from mock to real

* Add 'send_timeout_close' to socket defaults

* Shutdown on unexpected packet

* Shutdown socket on receive timeout, if required

* Update cache version

---------

Co-authored-by: Bryan Paxton <39971740+starbelly@users.noreply.github.com>
  • Loading branch information
bokner and starbelly committed Jul 18, 2023
1 parent ac59569 commit 0727b47
Show file tree
Hide file tree
Showing 6 changed files with 765 additions and 532 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ env:
MIX_ENV: test
otp-version: '24'
elixir-version: '1.14'
cache-version: '2'
cache-version: '3'

jobs:
build:
Expand Down
Loading

0 comments on commit 0727b47

Please sign in to comment.