• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

gausby / tortoise / 469
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: fix/clean-session-option
DEFAULT BRANCH: master
Ran 25 Aug 2018 02:42AM UTC
Jobs 1
Files 34
Run time 3s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
469

Pull #72

travis-ci

web-flow
Implement a `Tortoise.Connection.disconnect/1`-function

The `disconnect/1` function will cleanly terminate a connection;
meaning it will send a cancel message to the processes awaiting a
response to messages in-flight, and it will send a disconnect message
on the wire, after which it will close the network socket.

The inflight manager will set its status to draining which will allow
us to ignore messages in the mailbox; should a process attempt to
publish a message with QoS>0 after the inflight monitor have switched
its state to draining it will get the error message `{:error,
:terminating}`.

There is a slight chance that another process could put a message on
the socket after the disconnect-package and before we get to close the
socket. According to the specification it is not allowed to have more
data on the socket after the disconnect, but I don't think there is
much we can do about this. This is a theoretical issue though. I don't
think one should worry too much about it.

Notice; for now we will cancel outbound messages, perhaps we could
drain the outbound messages by making sure they are delivered, while
not accepting any new outbound messages. Starting off it seems easier
to just cancel the messages though.
Pull Request #72: Add disconnect function

16 of 16 new or added lines in 2 files covered. (100.0%)

562 of 646 relevant lines covered (87.0%)

33.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 469.1 25 Aug 2018 02:42AM UTC 0
87.0
Travis Job 469.1
Source Files on build 469
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #469
  • Pull Request #72
  • PR Base - next-release (#460)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc