Commit Graph

477 Commits

Author SHA1 Message Date
Guillermo Rauch
cbe8a2ef05 polling: implemented new protocol 2013-03-16 12:34:05 -07:00
Guillermo Rauch
ba82df2db5 test: clean up query string test 2013-03-16 09:20:34 -07:00
Guillermo Rauch
4cbaacb8af package: bumped engine.io-parser for flow control support 2013-03-16 09:10:45 -07:00
Guillermo Rauch
f5cf2243ec transports: implemented new parser 2013-03-16 09:10:32 -07:00
Guillermo Rauch
bdaff4ef2b package: bumepd engine.io-parser 2013-03-16 09:02:01 -07:00
Guillermo Rauch
82537a90cc Merge pull request #155 from albertyfwu/bug89
fixed bug89 and added tests: writeBuffer not flushed until nextTick'
2013-03-12 17:18:02 -07:00
albertyfwu
300b096000 test writeBuffer isn't cleared onError, removed 'closing' check in .flush() 2013-03-12 20:16:46 -04:00
Guillermo Rauch
5a2ee6c56a Merge pull request #151 from jphire/master
#112 Figure out optimal testing strategy for JSONP
2013-03-12 07:41:10 -07:00
albertyfwu
89de5f5975 fixed bug89 and added tests: writeBuffer not flushed until nextTick' 2013-03-12 02:59:47 -04:00
Guillermo Rauch
e027e28686 Merge pull request #154 from ysaw/issue119
Added tests for query string
2013-03-11 08:43:09 -07:00
Yihui Saw
edfec30b77 Added tests for query string 2013-03-10 22:31:39 -04:00
Janne Laukkanen
ee3f0cbeed added style fix for #112 2013-02-27 10:58:35 +02:00
Janne Laukkanen
17e3e52582 added tests for JSONP transport and a --globals flag in Makefile 2013-02-25 01:48:58 +02:00
Guillermo Rauch
0450cc42cd Release 0.4.3 2013-02-08 12:11:07 -08:00
Guillermo Rauch
ce28c9300f package: bumped engine.io-client to 0.4.3 2013-02-08 12:10:48 -08:00
Guillermo Rauch
81e599b344 Release 0.4.2 2013-02-08 11:12:15 -08:00
Guillermo Rauch
1059147fa3 Merge pull request #141 from pokermania/to_learnboost_20130130
close socket if upgrade is received and socket.readyState != open
2013-02-08 08:17:08 -08:00
Guillermo Rauch
59281c0e56 Merge pull request #145 from st3redstripe/spelling
Fix spelling errors
2013-02-08 07:53:37 -08:00
stephen-bradshaw
f2bc5190b4 fix spelling errors 2013-02-08 09:27:52 +00:00
Guillermo Rauch
1d7157622e Merge pull request #144 from shtylman/fix-multiple-paths
Only end upgrade socket connections if unhandled
2013-01-31 19:44:14 -08:00
Roman Shtylman
fd36eeaf02 Only end upgrade socket connections if unhandled
This fixes an issue where multiple engine.io instances (on different
paths) would result in the closing of websocket connections for all of
the instances. This happened because each engine.io instance would
register an `upgrade` handler on the server. This handler would check
for a matching path and otherwise call `socket.end()` Since multiple
upgrade events would be triggered with different paths, the peer
handlers would close each other.

This patch resolves this behavior in the following way:
- When an instance upgrade handler encounters a path which it does not
  recognize it creates a timeout for `destroyUpgradeTimeout`.
- At the end of the timeout, the socket is checked for writable state
  and bytes written. If there has been not activity and the socket is
  writable, then it will be ended.

This allows for peer socket handlers to keep the socket alive by sending
some data over it. This also mimics the core node behavior of closing
sockets on upgrade when no handler is specified. We consider not
handling an upgrade request similar to no handler. However, we cannot
immediately end the socket for the reasons noted above.

fixes #143
2013-01-31 22:42:11 -05:00
Guillermo Rauch
150d2bfb0c Merge pull request #142 from shtylman/fix-package-deps
fix websocket dependency
2013-01-30 15:02:18 -08:00
Roman Shtylman
ee475f10f2 fix websocket dependency
listing the dependency in dev dependencies clobbers the actual
dependency
2013-01-30 17:25:56 -05:00
Andor Goetzendorff
4ef40991be close socket if upgrade is received and socket.readyState != open 2013-01-30 16:57:44 +01:00
Guillermo Rauch
0d718b4a9c Release 0.4.1 2013-01-27 10:25:47 -08:00
Guillermo Rauch
86c0b9e186 package: buped engine.io-parser 2013-01-26 09:00:49 -08:00
Guillermo Rauch
03c8c353c4 Merge pull request #137 from sweetieSong/ExtractParser
Extract parser
2013-01-26 08:57:00 -08:00
Sweet
b69264dad9 Removed the lib/index in all the files 2013-01-19 14:27:17 -08:00
Sweet
82ef6b416c Adding .tracis.yml for first build 2013-01-19 13:25:18 -08:00
Sweet
90c0cd0e3f parser.js: deleted
package.json: updated the version for the client
everything else: fixed paths/requirements to the new protocol/parser repo
2013-01-19 13:14:00 -08:00
Sweet
dd5a4cb939 Merge branch 'master' of github.com:LearnBoost/engine.io into ExstractParser
Conflicts:
	package.json
2013-01-19 12:37:37 -08:00
Sweet
face92f018 paerse.js: modified parser to be used with the parser repo
package.json: updated with the correct parser dependency
common.js: changed the parser path
server.js: also changed the parser path
2013-01-19 12:25:31 -08:00
Guillermo Rauch
851890c07c Merge pull request #136 from xixixao/master
package:add git repo url
2013-01-19 11:20:58 -08:00
Michal Srb
782bf6505a package:add git repo url 2013-01-19 18:57:25 +00:00
Michal Srb
ac120a16ed Merge remote-tracking branch 'upstream/master' 2013-01-19 18:40:44 +00:00
Michal Srb
6c479b36e5 Merge remote-tracking branch 'origin/master' 2013-01-19 18:40:13 +00:00
Guillermo Rauch
1c68636575 Merge pull request #134 from xixixao/master
WebSocket setTimeout wrap when on iOS
2013-01-19 10:36:13 -08:00
Guillermo Rauch
9011a0e0d4 Merge pull request #135 from xixixao/fix/119
Fixed should trigger ping timeout test
2013-01-19 10:26:37 -08:00
Michal Srb
86366e86a5 Fixed should trigger ping timeout test 2013-01-19 18:20:25 +00:00
Michal Srb
60c61af68e websocket:Improve send method 2013-01-19 18:15:32 +00:00
Michal Srb
ef6d89b3d5 Fixed should trigger ping timeout test 2013-01-19 17:45:13 +00:00
Michal Srb
bc5ba93296 WebSocket setTimeout wrap when on iOS 2013-01-19 04:26:03 +00:00
Guillermo Rauch
0b9d9c4efa Merge pull request #133 from xixixao/master
Bump up version in package
2013-01-18 15:53:09 -08:00
Michal Srb
8f0f586934 package: bumped versions 2013-01-18 23:48:06 +00:00
Guillermo Rauch
a103bd5e19 Merge pull request #132 from roamm/send_packet_callback
Fixed bugs in the previous send callback fix and added new test cases
2013-01-16 10:38:33 -08:00
roam
148f654c92 Fixed bugs in previous send callback fix and updated test cases 2013-01-16 17:31:42 +08:00
roam
72861f3d49 Added a test case which makes the code before the send callback fix fail 2013-01-16 15:13:50 +08:00
roam
06b39687eb Fixed send callback test failures 2013-01-16 14:35:56 +08:00
roam
41ee77e3c6 Revert "Revert "Fixed packet send callback design issue""
This reverts commit ead08d6e5b.
2013-01-15 17:17:47 +08:00
Guillermo Rauch
ead08d6e5b Revert "Fixed packet send callback design issue"
This reverts commit 0dfa68c710.
2012-12-26 17:19:41 -03:00