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

ska-sa / aiokatcp / 97
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 9s
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
97

push

travis-ci

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

2507 of 2601 relevant lines covered (96.39%)

1.93 hits per line

Jobs
ID Job ID Ran Files Coverage
1 97.1 28 Jan 2019 03:13PM UTC 0
96.39
Travis Job 97.1
2 97.2 28 Jan 2019 03:13PM UTC 0
96.39
Travis Job 97.2
Source Files on build 97
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #97
  • 20018968 on github
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