Rusty Burchfield
12beee2d63
Don't lowercase log messages
...
Lowercasing log messages is unnecessary. It makes some messages difficult to
read, and others difficult to search for.
2012-08-08 11:32:57 -07:00
Guillermo Rauch
875f14d16b
Revert "Fix infinite recursion in Websocket parsers."
...
This reverts commit c218468f67 .
2012-08-07 13:18:41 -07:00
Rusty Burchfield
c218468f67
Fix infinite recursion in Websocket parsers.
...
If a client is feeding messages faster than server can handle them, infinite
recursion occurs. Basically, the "overflow" data gets added to the parser and
it immediately parses a new message.
The fix pushes the processing of the next message (in this edge case) onto the
event queue. This prevents the stack from recursing indefinitely. This also
prevents a fast client from starving other clients.
2012-08-06 13:03:51 -07:00
Guillermo Rauch
4164e3bd7e
Merge pull request #981 from doozr/honour-flash-settings
...
Honour flash settings
2012-08-06 08:59:17 -07:00
Craig Andrews
d723d363b2
Always set the HTTP response in case an error should be returned to the client
2012-08-06 14:16:06 +01:00
Craig Andrews
fa1c1b2ada
Create or destroy the flash policy server on configuration change
2012-08-06 14:14:15 +01:00
Craig Andrews
d32a848c3f
Honour configuration to disable flash policy server
2012-08-06 14:14:14 +01:00
Guillermo Rauch
1fa74a46a3
Revert "Fix disconnectSync getting ignored"
...
This reverts commit f48b40e134 .
2012-08-01 11:58:28 -07:00
Brian Gruber
f48b40e134
Fix disconnectSync getting ignored
...
If using xhr-polling and a browser closes a tab or window, the
disconnectSync in the socket.io-client method is called which sends an
XHR request to the server indicating a disconnect. This line would cause
that to be ignored and so the server would have to wait for a timeout to
mark them as disconnect. This was possibly because it was sent from a
different tcp socket than the current connection.
2012-07-26 21:19:00 -05:00
bodash
ffa8994a23
I continued to have websocket connection issues in Safari when using SSL that terminated at a load balancer. The shorthand logic that was here was nice and compact but didn't seem to work. Took the "intent" of the short hand and made it a bit more verbose and now it works.
2012-05-02 13:18:46 -06:00
Guillermo Rauch
0242a2ddf3
Merge branch 'master' of github.com:LearnBoost/socket.io
2012-04-17 19:51:49 -03:00
Guillermo Rauch
e98fc7bc86
Fixed XSS in jsonp-polling.
2012-04-17 19:48:32 -03:00
crickeys
1a5a87af13
Fixes when browser doesn't send origin header, defaults to empty string instead of UNDEFINED (which would throw an error on the origin.match(/^https/) below
2012-04-11 14:41:07 -05:00
Guillermo Rauch
09fb16b443
Ensure close upon request close.
2012-04-05 14:31:50 -03:00
Guillermo Rauch
330407cc9d
Fix disconnection reason being lost for polling transports.
2012-04-05 14:31:32 -03:00
Guillermo Rauch
2075307f23
Ensure that polling transports work with Connection: close
2012-04-05 14:31:13 -03:00
Mikito Takada
d80010dcf0
Firefox will try to parse the response from POST requests, causing a syntax error message in the Web Console. Basically an addition to https://github.com/LearnBoost/socket.io/pull/501
2012-03-27 16:43:17 -07:00
Mikito Takada
304a4285ff
Supplemental fix to gavinuhma/authfix, it looks like the same Access-Control-Origin logic is needed in the http and xhr-polling transports
2012-02-03 12:20:40 -08:00
Guillermo Rauch
cc2270bb90
Merge pull request #622 from mattrobenolt/master
...
Location mismatch in Safari behind proxy
2011-12-05 14:04:57 -08:00
Matt Robenolt
36fc7b07ea
Minor. Conform to style of other files.
2011-12-05 16:59:15 -05:00
Matt Robenolt
8eab3a87e7
Switching setting to 'match origin protocol'
2011-12-05 16:58:00 -05:00
Arnout Kazemier
a7f45fe6c0
prevent memory leaking on uncompleted requests & add max post size limitation
2011-11-23 22:28:38 +01:00
einaros
2b28c46400
added proper return after reserved field error
2011-11-14 17:50:57 +01:00
einaros
ffef944dd5
added implicit port 80 for origin checks. fixes #638
2011-11-14 09:45:44 +01:00
Matt Robenolt
6f2270add6
Adding configuration variable matchOriginProtocol
...
matchOriginProtocol is meant to be used when running socket.io behind a
proxy. matchOriginProtocol should be set to true when you want the
location handshake to match the protocol of the origin. This fixes
issues with terminating the SSL in front of Node and forcing location
to think it's wss instead of ws.
2011-11-03 15:34:24 -04:00
Matt Robenolt
220f8d5bf5
Fixes location mismatch error in Safari.
2011-11-03 01:35:18 -03:00
einaros
92a3cce272
circumvents #602 .. although only a horribly malformed websocket connection could potentially cause this
2011-10-28 14:04:55 +02:00
einaros
70c61fa84d
Merge remote branch 'upstream/master' into nodenext
2011-10-28 10:10:26 +02:00
Guillermo Rauch
5491c2798e
Merge branch 'master' of github.com:LearnBoost/socket.io
2011-10-27 12:54:03 +08:00
Guillermo Rauch
a9def6e209
Merge pull request #598 from 3rd-Eden/utf8
...
charset=UTF8
2011-10-26 21:53:46 -07:00
Guillermo Rauch
cf76b13145
Added JSON decoding on jsonp-polling transport.
...
This is due to browser's buggy handling of outgoing \n
2011-10-27 12:45:19 +08:00
Arnout Kazemier
db2a17f279
charset=UTF8
2011-10-26 11:48:41 +02:00
einaros
357a9cb870
fixed race condition and scoping bug
2011-10-25 21:25:44 +02:00
einaros
8253ed573a
ignore exception on port change
2011-10-25 19:47:39 +02:00
einaros
67495ad8a9
case-insensitive match for websocket upgrade, in all websocket transports
2011-10-22 10:21:10 +02:00
einaros
bee1efb11c
fixes #555
2011-10-22 10:16:48 +02:00
einaros
54fc513fc9
fixes #553 - (re)verify origin in websocket transport implementations
2011-10-02 16:34:09 +02:00
einaros
0b1e43cb87
added binary support to the hybi 07-12 parsers as well
2011-10-02 15:31:36 +02:00
einaros
c8dabb225c
added binary support to hybi-16 parser, refactored hybi tests somewhat
2011-10-02 15:19:17 +02:00
einaros
245dc12ade
added fixes from hybi-07-12 which also apply to 16
2011-10-02 00:09:21 +02:00
einaros
00f7ca1d02
fixed incorrect space chars
2011-10-01 14:45:20 +02:00
einaros
f1cea7e788
Merge branch 'master' of github.com:einaros/socket.io
2011-10-01 14:42:07 +02:00
einaros
050fcf7a83
websocket draft HyBi-16 support
2011-10-01 14:39:27 +02:00
einaros
2a81b25a5b
fixed websocket continuation bugs
2011-09-26 10:14:19 +02:00
einaros
f9ea04eb6b
redirect actual transport name (such as flashsocket), if present, to the websocket version being loaded
2011-09-20 18:53:04 +02:00
einaros
3c4a04ea02
fixes #523 . private 'payload' method in transport used from manager.js, wasn't present in hybi parser
2011-09-20 17:56:32 +02:00
Guillermo Rauch
e282ab0e63
Fixed transport message packet logging.
...
Fixed style.
2011-09-03 12:13:50 -07:00
einaros
ae7f25332a
switched \u**** to \x** for single byte writes, as the former doesn't really make any sense
2011-08-30 11:17:32 +02:00
einaros
63fc15d276
style changes
2011-08-30 11:03:50 +02:00
einaros
13647075f2
fixed utf8 bug in send framing
2011-08-29 09:43:12 +02:00