RFC: Include timeout duration in exception message
authorJason Rahman <jprahman@fb.com>
Sat, 28 Jan 2017 06:24:55 +0000 (22:24 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Sat, 28 Jan 2017 06:32:57 +0000 (22:32 -0800)
commit0ea1868e77693a550ddc7c0d4075797a2cb780dd
treeae161b40aa03eb675abedb620272b4dbf85f5b2d
parentdc3979b05c81396a6d33f4bbb7759d41f0950f70
RFC: Include timeout duration in exception message

Summary: For debugging purposes, it's often extremely useful to have the duration of the expired timeout in the exception message (in case the timeout was excessively low, or to understand exactly how long the operation ran before failing due to timeout). Here we make a best effort to include the timeout when possible.

Reviewed By: yfeldblum

Differential Revision: D4476038

fbshipit-source-id: f2d0aa5e1f6367a3cfe20579c27577ab91fd8d9c
folly/io/async/AsyncSSLSocket.cpp
folly/io/async/AsyncSSLSocket.h
folly/io/async/AsyncSocket.cpp