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

yarpc / yarpc-go / 1413
90%
master: %

Build:
Build:
LAST BUILD BRANCH: nooptrace
DEFAULT BRANCH: master
Ran 19 Jul 2016 01:21AM UTC
Jobs 4
Files 79
Run time 2min
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
1413

push

travis-ci

bombela
Handling of remote timeout

Before this commit, a remote handler that timeouts would return an
unexpected error.

An example when this is a problem:
 - A client starts a request with a timeout of X
 - The remote receives it and runs the remote handler
 - The handler reaches the deadline, and gracefully return a deadline
   error.
 - There is two possible path on the client:
   - The client timeouts itself slightly before receiving the response
     from the server. The user code receives a yarpc timeout error.
   - The client receives the deadline error from the server. The user
     code should receive a timeout error, but was receiving an
     unexpected remote error.

On the HTTP transport, the server returns a 504 with the message "remote
timeout". The client can then build a timeout error using the remote
message as the error message.

On the tchannel transport, the server returns a tchannel timeout error,
with the same message "remote timeout". The timeout error is built like
above.

It is interesting to note that a local timeout (ie, one generated by
tchannel or HTTP on the client side) will have the message "timeout".

Finally, any proxy along the way could also return a timeout error,
likely with a different message.

Programmatically the user code on the client always receives a
TimeoutError, and the error message can be used by humans for analysis.

3539 of 3933 relevant lines covered (89.98%)

3.81 hits per line

Jobs
ID Job ID Ran Files Coverage
1 1413.1 19 Jul 2016 01:22AM UTC 0
89.98
Travis Job 1413.1
2 1413.2 19 Jul 2016 01:22AM UTC 0
89.98
Travis Job 1413.2
3 1413.3 19 Jul 2016 01:21AM UTC 0
89.98
Travis Job 1413.3
4 1413.4 19 Jul 2016 01:23AM UTC 0
89.98
Travis Job 1413.4
Source Files on build 1413
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #1413
  • af71f6f5 on github
  • Next Build on timeout (#1432)
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

© 2025 Coveralls, Inc