-
Notifications
You must be signed in to change notification settings - Fork 135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Making UDS error handling and recovery more robust. #189
Commits on Sep 28, 2020
-
Storing
path
,stream
andudsGracefulRestartRateLimit
on `client……` in constructor. Also using these in places where `options` was used.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 8d7fe2b - Browse repository at this point
Copy the full SHA 8d7fe2bView commit details -
Getting rid of
socketCreateLimit
local (not needed any longer).Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 5eb2e19 - Browse repository at this point
Copy the full SHA 5eb2e19View commit details -
Introduce
trySetNewSocket()
helper.This way we can retry using this helper.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 700fb83 - Browse repository at this point
Copy the full SHA 700fb83View commit details -
Replacing
switch
statement withUDS_ERROR_CODES
constant.This is in advance of a change that will allow these to be OS specific.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for ccc83e4 - Browse repository at this point
Copy the full SHA ccc83e4View commit details -
Using
-code
for check withinUDS_ERROR_CODES
.See https://nodejs.org/docs/latest-v12.x/api/errors.html for an example (in `error.errno`) explaining why error codes are negative.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for eef577c - Browse repository at this point
Copy the full SHA eef577cView commit details -
Using OS-specific error codes in
udsErrors()
.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 9db6aa0 - Browse repository at this point
Copy the full SHA 9db6aa0View commit details -
Factoring out
udsErrorHandler()
helper.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 46da650 - Browse repository at this point
Copy the full SHA 46da650View commit details -
Factoring out
addUDSErrorHandler()
helper.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 5d194ab - Browse repository at this point
Copy the full SHA 5d194abView commit details -
Keeping around
client.isChild
so it can be re-used.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for a8845b2 - Browse repository at this point
Copy the full SHA a8845b2View commit details -
Danny Hermes committed
Sep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 23b6aaa - Browse repository at this point
Copy the full SHA 23b6aaaView commit details -
Adding UDS recovery to
Client.prototype.sendMessage
.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 572cb0c - Browse repository at this point
Copy the full SHA 572cb0cView commit details -
Checking
isChild
/udsGracefulErrorHandling
in `maybeAddUDSErrorH……andler()`.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 0fc3a68 - Browse repository at this point
Copy the full SHA 0fc3a68View commit details -
Modifying
udsErrorHandler()
to check truthy socket.This way `this.socket` is only replaced if `createTransport()` returned an actual socket (vs. `null`).
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 7b36227 - Browse repository at this point
Copy the full SHA 7b36227View commit details -
Remove spurious space between
!
and var.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 7cf8ad8 - Browse repository at this point
Copy the full SHA 7cf8ad8View commit details -
Adding explicit import for
process
.Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 1e364f5 - Browse repository at this point
Copy the full SHA 1e364f5View commit details -
Adding JSDoc to newly added code.
See: https://travis-ci.org/github/brightcove/hot-shots/jobs/730354851 This was due to `eslint` failures. Also changed some `==` to `===` and added / removed some `;` in lines that needed / didn't need.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for 15e9eb1 - Browse repository at this point
Copy the full SHA 15e9eb1View commit details -
Fixing
this
->client
reference.This "bug" was introduced to my bugfix in a re-factor.
Danny Hermes committedSep 28, 2020 Configuration menu - View commit details
-
Copy full SHA for f3d3fd6 - Browse repository at this point
Copy the full SHA f3d3fd6View commit details -
Configuration menu - View commit details
-
Copy full SHA for 884c980 - Browse repository at this point
Copy the full SHA 884c980View commit details