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

gugod / Hijk / 122 / 3
91%
master: 92%

Build:
Build:
LAST BUILD BRANCH: 0.28
DEFAULT BRANCH: master
Ran 16 Mar 2014 06:51PM UTC
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

16 Mar 2014 06:51PM UTC coverage: 90.541%. First build
TEST_ELASTICSEARCH=1 TEST_LIVE=1 TEST_HOST=localhost TEST_PORT=9200

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

268 of 296 relevant lines covered (90.54%)

219.94 hits per line

Source Files on job 122.3 (TEST_ELASTICSEARCH=1 TEST_LIVE=1 TEST_HOST=localhost TEST_PORT=9200)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 122
  • Travis Job 122.3
  • 3bf94858 on github
  • Next Job for TEST_ELASTICSEARCH=1 TEST_LIVE=1 TEST_HOST=localhost TEST_PORT=9200 on non_blocking (#123.4)
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