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

gugod / Hijk / 122
91%
master: 92%

Build:
Build:
LAST BUILD BRANCH: 0.28
DEFAULT BRANCH: master
Ran 16 Mar 2014 06:51PM UTC
Jobs 1
Files 10
Run time –
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
122

push

travis-ci

borislav nikolov
use non-blocking socket; decrease timeout after io

switching to non-blocking sockets solved:

* at the moment we use select() -> read() on blocking socket,
  sometimes however select() might give a socket to io from
  and the io operation will block

* we were always blocking on write(), which is of course problem
  if the connection succeeds, that does not mean that the write
  wont block

decrease timeout:
* there was an issue with 'read(), wait, read(), wait' scenarios
  where the timeout was always the same, so in theory it might
  lead to unexpectedly long request() calls.

  this requires Time::HiRes::CLOCK_MONOTONIC() which guarantees
  that the time value will always move forward (meaning it
  wont be messed up by time set for example), so we can simply
  do:
    $timeout -= $start - $clock();
  so every IO operation's wait time is decremented from the
  original timeout value

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

268 of 296 relevant lines covered (90.54%)

219.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
7
100.0
lib/Hijk.pm
Jobs
ID Job ID Ran Files Coverage
3 122.3 (TEST_ELASTICSEARCH=1 TEST_LIVE=1 TEST_HOST=localhost TEST_PORT=9200) 16 Mar 2014 06:51PM UTC 0
90.54
Travis Job 122.3
Source Files on build 122
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #122
  • 3bf94858 on github
  • Next Build on non_blocking (#123)
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