-
Notifications
You must be signed in to change notification settings - Fork 10
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
v0.6.7 proposal #101
Merged
Merged
v0.6.7 proposal #101
Changes from all commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
754e1d4
Working on v0.6.7
aqrln dd52fb6
doc: fix linter warning in CHANGELOG.md
aqrln a79325e
tools: remove crlf.js from dot-ignore files
aqrln 17430eb
npm: don't include doc/ and mkdocs.yml to package
aqrln 82f21fb
doc: add session WG meeting
belochub 57c10ae
lint: update remark
aqrln 9b2cac9
test: add Node.js 6.10 and 7.6 to .travis.yml
aqrln de5ffe5
tools: move build-native.js to tools
aqrln 943bd79
lib: make failed addon loading more informative
aqrln 506c223
w3c-ws: emit missing error event
aqrln 5f6cd8e
w3c-ws: fix invalid property access
aqrln 9c8d9f3
test: add Node.js 7.7 to .travis.yml
aqrln 1ea34c6
connection: change style of a forward declaration
aqrln bb86faa
lib: change multiline function signatures style
aqrln 1c48af0
tools: generate authors list automatically
aqrln bf114ad
meta: update AUTHORS and .mailmap
aqrln 7b6dd6f
meta: fix misleading language in LICENSE
aqrln ba9874c
connection: check that method arguments exist
aqrln dd238d9
Version 0.6.7
aqrln File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,6 @@ node_modules | |
*.heapsnapshot | ||
|
||
# Development helpers | ||
crlf.js | ||
dev/ | ||
|
||
# Project files | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Alexey Orlenko <eaglexrlnk@gmail.com> | ||
Dmitry Borisov <dimon.durak@gmail.com> <Dimon Durak> | ||
Mykola Bilochub <nbelochub@gmail.com> | ||
Timur Shemsedinov <timur.shemsedinov@gmail.com> | ||
Vlad Dziuba <dzyubavlad@gmail.com> <Dzyubavlad@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,6 @@ | ||
Timur Shemsedinov <timur.shemsedinov@gmail.com> | ||
Dmitry Borisov <dimon.durak@gmail.com> | ||
Artem Chernenkiy <notthewhite@gmail.com> | ||
Alexey Orlenko <eaglexrlnk@gmail.com> | ||
Mykola Bilochub <nbelochub@gmail.com> | ||
Vlad Dziuba <dzyubavlad@gmail.com> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# Sessions WG meeting | ||
|
||
Date: 2017-02-21 | ||
|
||
### Invited: | ||
|
||
* Alexey Orlenko <eaglexrlnk@gmail.com> | ||
([@aqrln](https://github.com/aqrln)) from server team | ||
* Mykola Bilochub <nbelochub@gmail.com> | ||
([@belochub](https://github.com/belochub)) from server team | ||
* Denys Otrishko <shishugi@gmail.com> | ||
([@lundibundi](https://github.com/lundibundi)) from Android team | ||
* Andrew Vysotskyi <firemaaaan@gmail.com> | ||
([@Gagnant](https://github.com/Gagnant)) from iOS team | ||
|
||
### Present: | ||
|
||
* Alexey Orlenko <eaglexrlnk@gmail.com> | ||
([@aqrln](https://github.com/aqrln)) from server team | ||
* Mykola Bilochub <nbelochub@gmail.com> | ||
([@belochub](https://github.com/belochub)) from server team | ||
* Denys Otrishko <shishugi@gmail.com> | ||
([@lundibundi](https://github.com/lundibundi)) from Android team | ||
|
||
### Agenda: | ||
|
||
* General way of reconnection to existing sessions; | ||
* Session restoration mechanisms architecture; | ||
* The problems with reconnection mobile developers encountered in our last | ||
project and proper ways to solve them; | ||
* Handshake packet formats (for request and response) that will be used to | ||
implement reconnection to existing sessions. | ||
|
||
### Conclusions: | ||
|
||
* To make packet numbers unique for every session, not connection like it was before; | ||
* To send total count of packets sent and received by each side during the session | ||
in handshake packet, like this: | ||
|
||
```javascript | ||
{ handshake: [0, 'appName'], session: ['sessionId', sent_count, received_count] } | ||
``` | ||
|
||
and answer | ||
|
||
```javascript | ||
{ handshake: [0], ok: [sent_count, received_count] } | ||
``` | ||
|
||
### Post-discussion additions: | ||
|
||
1. Even though packet IDs are incremented throughout the session, not the | ||
connection, handshake packets are always 0 since we don't know which packet | ||
IDs to use until a handshake has been performed. After that, the order | ||
continues as it should have been if there hadn't been reconnection, with an | ||
extra handshake being transparent. | ||
|
||
2. The standard `ERR_AUTH_FAILED` error will be used for any handshake | ||
authentication strategy, regardless of it being `login`, `session` or | ||
anything we may probably add later. What it means for session restoration | ||
handshakes is that if session ID is invalid, the server responds with | ||
|
||
```javascript | ||
{ handshake: [0], error: [11] } | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,9 +23,9 @@ if (jstpNative) { | |
} | ||
} else { | ||
console.warn( | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Also should be redirected to logging provider |
||
'JSTP native addon is not built. ' + | ||
'JSTP native addon is not built or is not functional. ' + | ||
'Run `npm install` in order to build it, otherwise you will get ' + | ||
'poor server performance under load.' | ||
'poor performance.' | ||
); | ||
module.exports = require('./record-serialization-fallback'); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
#!/usr/bin/env node | ||
|
||
'use strict'; | ||
|
||
const fs = require('fs'); | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
In future we will redirect this to logging provider. Just don't forget. Better create issue :)
For example in Impress to
application.log.warning
, if no provider then print to stdout.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.
Done :)
#102