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

gausby / tortoise / 468
87%
master: 88%

Build:
Build:
LAST BUILD BRANCH: fix/clean-session-option
DEFAULT BRANCH: master
Ran 25 Aug 2018 02:39AM UTC
Jobs 1
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

pending completion
468

push

travis-ci

gausby
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.

564 of 646 relevant lines covered (87.31%)

33.72 hits per line

Jobs
ID Job ID Ran Files Coverage
1 468.1 25 Aug 2018 02:39AM UTC 0
87.31
Travis Job 468.1
Source Files on build 468
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #468
  • cc7c38c8 on github
  • Prev Build on add-disconnect-function (#467)
  • Next Build on add-disconnect-function (#471)
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