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

ska-sa / aiokatcp / 98
96%
master: 95%

Build:
Build:
LAST BUILD BRANCH: ci-macos-14
DEFAULT BRANCH: master
Ran 28 Jan 2019 03:13PM UTC
Jobs 2
Files 15
Run time 18s
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
98

Pull #12

travis-ci

web-flow
Fix endless loop of "socket.send() raised except"

If a client is receiving async informs (e.g. sensors) and disconnects,
the server won't notice that the underlying transport has closed and
would keep attempting to send informs, with the above message being
logged each time. It seems that asyncio assumes one regularly drains the
writer (and raises the ConnectionResetError from `drain`), but there is
no good place to put that (we don't want to block the server backend if
one client is slow, although that's a whole 'nother kettle of fish).

Fixed by manually checking for a closed stream. One now gets a single
instance of
```
WARNING:aiokatcp.connection:Connection closed before message could be sent: Connection lost [127.0.0.1:54100]
```
which I think might be due to TCP socket limitations, where you can't
tell that a socket has died until you try to write to it.

Closes #11.
Pull Request #12: Fix endless loop of "socket.send() raised except"

2 of 2 new or added lines in 1 file covered. (100.0%)

2507 of 2601 relevant lines covered (96.39%)

1.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 98.1 28 Jan 2019 03:14PM UTC 0
96.39
Travis Job 98.1
2 98.2 28 Jan 2019 03:13PM UTC 0
96.39
Travis Job 98.2
Source Files on build 98
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #98
  • Pull Request #12
  • PR Base - master (#96)
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