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

gausby / tortoise / 469 / 1
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: fix/clean-session-option
DEFAULT BRANCH: master
Ran 25 Aug 2018 02:42AM UTC
Files 34
Run time 2s
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

25 Aug 2018 02:41AM UTC coverage: 86.997% (+0.2%) from 86.825%
469.1

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

562 of 646 relevant lines covered (87.0%)

33.28 hits per line

Source Files on job 469.1
  • Tree
  • List 0
  • Changed 26
  • Source Changed 2
  • Coverage Changed 26
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 302
  • Travis Job 469.1
  • c1e298dd on github
  • Prev Job for on add-disconnect-function (#460.1)
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