Toggle navigation
Toggle navigation
This project
Loading...
Sign in
liuming
/
developer-docs
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
undancer
2016-02-16 12:00:14 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a4dd9d257b5b6f3155d63bab22e53779f915d700
a4dd9d25
1 parent
41569b57
Updated 新的事件发送定义(讨论中) (markdown)
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
新的事件发送定义(讨论中).md
新的事件发送定义(讨论中).md
View file @
a4dd9d2
...
...
@@ -99,6 +99,13 @@ C. 服务器去重
D. 服务器重排列
服务器会定期梳理事件,尽可能保证last_event_id的事件在event_id的前面。如果出现循环,丢失等情况,则略过。
##3、MNS授时问题
由于我们采取的方式为客户端将事件直接发送给MNS服务器,而用户设备的时间是否准确直接影响到MNS到底能否正确接收,所以这里出现了授时问题,解决方案如下:
1.
提交时如果response状态码为:408,则发生了授时问题,此时需要通过response拿到正确的服务器时间
2.
拿到正确的服务器时间后计算与本设备的时间偏移量并保存起来
3.
拿当前时间加上偏移量重新计算签名并重新提交
##参考:
...
...
Please
register
or
login
to post a comment