-
Notifications
You must be signed in to change notification settings - Fork 17
Add timeout support to Http protocol #439
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
Conversation
Codecov Report
@@ Coverage Diff @@
## 6-dev #439 +/- ##
=========================================
- Coverage 96.15% 96.1% -0.06%
=========================================
Files 33 33
Lines 1612 1616 +4
=========================================
+ Hits 1550 1553 +3
- Misses 62 63 +1
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## 6-dev #439 +/- ##
=========================================
- Coverage 96.15% 96.1% -0.06%
=========================================
Files 33 33
Lines 1612 1616 +4
=========================================
+ Hits 1550 1553 +3
- Misses 62 63 +1
Continue to review full report at Codecov.
|
| `port` | <pre>number</pre><br/>(`7512`) | Kuzzle server port | | ||
| `sslConnection` | <pre>boolean</pre><br/>(`false`) | Use SSL to connect to Kuzzle server | | ||
| `customRoutes` | <pre>object</pre><br/>(`{}`) | Add custom routes <SinceBadge version="6.2.0"/> | | ||
| `timeout` | <pre>number</pre><br/>(`0`) | Connection timeout <SinceBadge version="6.2.1"/> | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's the unit? And does '0' mean "no timeout"?
| `port` | <pre>number</pre> | Kuzzle server port | Get | | ||
| `protocol` | <pre>string</pre> | `https` or `http` | Get | | ||
| `ssl` | <pre>boolean</pre> | `true` if ssl is active | Get | | ||
| `timeout` | <pre>number</pre> | Connection timeout <SinceBadge version="6.2.1"/>| Get/Set | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ditto.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According @scottinet review LGTM
Co-Authored-By: Sébastien Cottinet <[email protected]>
# [6.2.2](https://github.com/kuzzleio/sdk-javascript/releases/tag/6.2.2) (2019-09-11) #### Bug fixes - [ [#437](#437) ] Fix duplicate subscriptions on reconnect ([benoitvidis](https://github.com/benoitvidis)) #### Enhancements - [ [#439](#439) ] Add timeout support to Http protocol ([Aschen](https://github.com/Aschen)) ---
What does this PR do?
Adds a connection timeout for http protocol
https://deploy-preview-439--doc-sdk-javascript.netlify.com/protocols/http/properties/
How should this be manually tested?
new Http('localhost', { timeout: 1000 })