Nicolas Favre-Felix
a7859866b4
Merge pull request #61 from lucap/master
...
Add example of subscribe with chunk encoding using client side javascript
12 years ago
Luca Pellicoro
94b4d80a48
Don't interfere with markdown
12 years ago
Luca Pellicoro
7255c5e7df
Add javscript chunk encoding example in readme
12 years ago
David Costa Faidella
884cba24e0
If the command is a SUBSCRIBE or a PSUBSCRIBE, the keep alive should be 1, keeping the connection alive from the web socket and enabling the client to manage its lifecycle. This seems to do the trick but I don't know enough about the webdis architecture as to guarantee that there are no side effects. But so far seems to do the trick.
12 years ago
Nicolas Favre-Felix
776d987b69
Fix travis yaml file
12 years ago
Nicolas Favre-Felix
f49c49bd09
Travis fixes
12 years ago
Nicolas Favre-Felix
2cfc27dacc
Fix websockets for recent versions of Chrome
...
* Remove Sec-WebSocket-Protocol: chat
* Make sure frames are sent asynchronously
12 years ago
Nicolas Favre-Felix
2c634fa071
Remove BSON support
12 years ago
ZhangShuai
0de6719555
Enable KEEPALIVE socket option to do with half connection.
12 years ago
Nicolas Favre-Felix
8a8ab845a3
Merge pull request #52 from andrebraga/master
...
Re Issue #51 , as mentioned, this fix is appropriate for all BSDs
12 years ago
André Braga
bd8a0606f4
Fix server.c for BSDs, actually.
12 years ago
Nicolas Favre-Felix
6051d8b0c8
Fix server.c for OSX
...
Memset the whole of addr to zero and add sin_len on OSX.
GitHub issue #51 .
12 years ago
Nicolas Favre-Felix
03bca0a1f0
Travis CI fix
12 years ago
Nicolas Favre-Felix
43387cf888
Travis CI dependencies
12 years ago
Nicolas Favre-Felix
1a987ed6dc
Setting up Travis CI
12 years ago
Nicolas Favre-Felix
20b5408834
Add Access-Control-Allow-Headers: *
12 years ago
Nicolas Favre-Felix
b7fb7324f8
Remove deprecated test for DB number.
12 years ago
Nicolas Favre-Felix
c26e777e86
Merge branch 'custom-db'
12 years ago
Nicolas Favre-Felix
7ad2c87d47
Document DB support.
12 years ago
Nicolas Favre-Felix
b7607a0381
Test separate databases.
12 years ago
Nicolas Favre-Felix
540b1a91bb
Create new connection for new separate DBs.
12 years ago
Nicolas Favre-Felix
3db6e26ee6
Detect database number as first command parameter.
...
Feature request described in GitHub ticket #48 .
12 years ago
Nicolas Favre-Felix
66e4e19f6a
Fix tests Makefile
12 years ago
Nicolas Favre-Felix
8916feb1b4
Add error message for failing event_add.
12 years ago
Nicolas Favre-Felix
28ec18582a
Update hiredis.
13 years ago
Jeremy Morse
e9da83d268
If a websocket SUBSCRIBEs, use new redis context.
...
This patch emulates functionality already in cmd_run, in the context of
websockets. A client running "[P]SUBSCRIBE" will restrict the commands
allowed to be issued in the context used. Therefore, websocket clients
making subscriptions get their own context, so as to not pollute the
workers' own Redis contexts.
Resource/context deallocation should occur upon http client disconnect,
just as it is for client-specific contexts from cmd_run.
13 years ago
Rob Spanton
7e3357576a
Don't free the cmd if it's [p]subscribe
...
If one sent a [p]subscribe command through a websocket, the cmd
struct got freed after the first response was received. Subscribe
commands generate multiple responses, so this resulted in accessing
already-freed data, and double-freeing.
This patch adds a check to see if it's a subscribe command, and if it
is avoids the freeing.
13 years ago
Nicolas Favre-Felix
5625498ecc
Add allocation check for ETags.
13 years ago
Nicolas Favre-Felix
9b62593f53
Handle memory allocation issues better.
...
Return 503 for memory issues during HTTP parsing.
13 years ago
Nicolas Favre-Felix
7069389d63
[docs] Add question mark as a character to encode.
...
Fixes issue #41 .
13 years ago
Nicolas Favre-Felix
85d242f63a
Add HTTP limits (security feature).
...
* Limit the total HTTP request size.
* Fail early, as soon as invalid characters are found.
* Fixes issue #33 .
13 years ago
Nicolas Favre-Felix
a26a8681ac
Removed obsolete unit test
13 years ago
Nicolas Favre-Felix
006186f429
Added separator param for custom list responses.
13 years ago
Nicolas Favre-Felix
6b8231989e
Merge branch 'master' of https://github.com/chx/webdis into chx-master
13 years ago
Nicolas Favre-Felix
df57554fca
Merge pull request #40 from chx/nil
...
Send 404 for nil in custom format
13 years ago
Karoly Negyesi
efc23393a9
Merge branch 'master' of https://github.com/nicolasff/webdis
13 years ago
Karoly Negyesi
3e9354b21f
A nil is not found
13 years ago
Nicolas Favre-Felix
5385f9cbaa
Fixed warnings seen on FreeBSD.
13 years ago
Nicolas Favre-Felix
741db1b0c0
Removed endian.h
...
(Fixes GitHub issue #38 ).
13 years ago
Nicolas Favre-Felix
54d0d45d8d
Moving away from endian.h
13 years ago
Nicolas Favre-Felix
712132ebc2
Reverted previous change
13 years ago
Nicolas Favre-Felix
a6c994cd24
Added missing -lrt.
...
Tentative fix for GitHub issue #38 .
13 years ago
Nicolas Favre-Felix
227e1809e4
More compatibility fixes with endian.h
13 years ago
Nicolas Favre-Felix
d4d0ba4c4b
Added sys/endian.h for Mac OSX.
...
(GitHub issue #38 ).
13 years ago
Nicolas Favre-Felix
022861ebd1
WebSocket fixes.
...
* Fixed size issues with large WS payloads.
* Added support for continuation frames.
13 years ago
Nicolas Favre-Felix
28326df532
Merge branch 'websockets'
13 years ago
Nicolas Favre-Felix
5190c16157
Updated WebSocket protocol to RFC6455.
...
WebSocket HTML demo now works with Google Chrome 17
and Firefox 8.
13 years ago
Nicolas Favre-Felix
da8c888f88
Merge branch 'master' into websockets
13 years ago
Karoly Negyesi
478c62c66b
We only need string support for arrays with no separators.
13 years ago
Karoly Negyesi
4732d4f3b0
txt array support
13 years ago