pandamicro
d54cdb6f4d
Fix incorrect usage of PersistentRootedObject in jsb websocket
2017-09-19 09:55:21 +08:00
pandamicro
0b057318a4
Avoid useless function check in executeFunctionWithOwner and useless js parameter construction in websocket
2017-09-04 13:46:37 +08:00
pandamicro
67f08532ce
Fix closing app crash in websocket finalize
2017-08-21 22:46:34 +08:00
pandamicro
c37ee5e8c5
Merge branch 'v1.6' of github.com:cocos-creator/cocos2d-x-lite into v1.6
...
# Conflicts:
# cocos/scripting/js-bindings/manual/network/jsb_websocket.cpp
2017-08-21 22:40:32 +08:00
pandamicro
d32a731cac
Fix network binding issues
2017-08-21 22:27:59 +08:00
James Chen
fcfbd6e4fa
Fixes crash while invoking ws.send method after onclose event.
2017-08-16 17:58:40 +08:00
pandamicro
80dac85639
Fix network crashing issue during restart
2017-08-07 18:30:51 +08:00
James Chen
68be4dbbaf
Fix potential crash after WebSocket.close.
...
Since the finalize function will get a invalid pointer of WebSocket, invoking ws->closeAysnc() will generate unknown result, probably crash.
HOW TO FIX:
WebSocket and JSB_WebSocketDelegate inhert from Ref. After websocket is initialized successfully, retain websocket instance and delegate, they will both have 2 reference count.
release their reference both in onClose callback and finalize function. The reason is that the order of invoking onClose and finalize function will be unpredictable, ref count technique help to handle this.
Another fix is sending onclose event after onerror is received.
2017-07-20 16:43:24 +08:00
pandamicro
0768865461
Fix non ref finalize crash during app close
2017-06-30 18:02:05 +08:00
pandamicro
ecafdac39a
Fix network new proxy fail issue
2017-06-30 18:02:04 +08:00
pandamicro
f72d66db24
Refactor JSFunctionWrapper & Use MutableHandleValue for conversion’s return value
...
Upgrade to Spidermonkey v52. pass 8
2017-06-30 18:01:58 +08:00
pandamicro
b1e9d01da9
Upgrade to Spidermonkey v52. pass 7: Remove auto compartment
2017-06-30 18:01:56 +08:00
pandamicro
024451216f
Upgrade to Spidermonkey v52. pass 5: Compilation passed on v52
2017-06-30 18:01:56 +08:00
pandamicro
52c393c354
Upgrade to Spidermonkey v52. pass 5: Remove js_native_proxy
2017-06-30 18:01:56 +08:00
pandamicro
9f321538cf
Upgrade to Spidermonkey v52. pass 2
2017-06-30 18:01:53 +08:00
pandamicro
17c5e5d779
Upgrade to spider monkey 52, pass 1
2017-06-30 18:01:51 +08:00
James Chen
fc98b4bdc0
Sync with cocos2d-x v3 branch ddb4dc8 commit.
2017-04-24 10:49:02 +08:00
James Chen
779cc28217
Sync from https://github.com/cocos2d/cocos2d-x/pull/17381
2017-02-20 10:46:28 +08:00
James Chen
a9b35750cf
Updates JSBindings to support pass a CA file through ‘new WebSocket(url, [protocols], caFilePath)’ API.
2017-02-16 11:15:45 +08:00
pandamicro
1da6a0e5ae
Revert Network modifications
2017-02-06 12:37:44 +08:00
pandamicro
cec9760bd0
Fix websocket cycling destructor issue
2017-01-22 18:43:32 +08:00
pandamicro
c47a770877
Adapt websocket to new memory model
2017-01-06 16:59:40 +08:00
pandamicro
6713fd2d11
Fix js-bindings project compilation issues
2016-08-15 19:08:58 +08:00
pandamicro
f05b67e287
Upgrade cocos/scripting to v3.13
2016-08-09 18:17:42 +08:00
Wenhai Lin
cdbd28ce43
[JSB]Fixed crash when WebSocket is closed.
2016-04-27 13:54:25 +08:00
Wenhai Lin
a50b000b17
Fixed memory leak and warns
2016-04-21 23:47:26 +08:00
Wenhai Lin
83fc6fd1a8
Bug fix:
...
1.Fixed crash in win for rich text
2.Fixed crash when custom SSL certificate is set on iOS
3.Fixed SocketIO crash on reconnect
4.Fixed ActionManager memory leak
5.Fixed crash in MenuItem::activate
6.Fixed crash on exit game
7.Fixed crash in TableView::updateCellAtIndex
8.Fixed crash in RichText on window
2016-04-21 15:19:47 +08:00
Wenhai Lin
7399218a5e
Close web socket on exit may cause crash.
2016-04-11 15:52:40 +08:00
Wenhai Lin
e4b8db424a
Withespaces does matter.
2016-04-07 21:56:30 +08:00
Wenhai Lin
b3a6312d88
Fixes wrong usage of std::vector's constructor in EventDispatcher::removeAllEventListener
2016-04-07 16:22:53 +08:00
Wenhai Lin
0e7cb5da16
no more uthash
2016-04-07 11:33:04 +08:00
Wenhai Lin
94c95d5838
Withespaces does matter.
2016-03-31 23:50:02 +08:00
Wenhai Lin
a6dbf31dcf
cocos 2d lite version
2016-03-29 17:55:48 +08:00