367 Commits (46e872a090f0bacc2bbe9b8a6f04dd70667b40c2)
 

Author SHA1 Message Date
Andriy Senkovych 46e872a090 Allow setting CFLAGS and LDFLAGS from environment variables 11 years ago
Andriy Senkovych b1cda7e376 Add makefile targets to run tests 11 years ago
Andriy Senkovych 3156b530af Allow test programs use custom port using environment variable or command-line argument 11 years ago
Nicolas Favre-Felix 290a188067 Release 0.1.0 11 years ago
Nicolas Favre-Felix a4789c6287 Make WEBDIS_VERSION redefinable 11 years ago
Nicolas Favre-Felix a9cfcb1ec6 Add version.h and log webdis version on startup (issue #81) 11 years ago
Nicolas Favre-Felix e978ff2f33 Handle SIGTERM & SIGINT (issue #10) 11 years ago
Nicolas Favre-Felix 290656409f Disable SELECT command - issue #80 11 years ago
Nicolas Favre-Felix 9a2be34650 Reopen logs on SIGHUP (GitHub issue #10) 11 years ago
Nicolas Favre-Felix b56218c84a Write pidfile when daemonized (GitHub issue #10) 11 years ago
Chris Davies dd18189cc4 two minor protocol issues with Chrome/web standards 11 years ago
Nicolas Favre-Felix 39cdc9bd19 Remove access to free'd memory in cmd_free
Fixes GitHub issue #73
12 years ago
Nicolas Favre-Felix 45ccf6a8d4 Remove check on argv[0] if argv[0] is null
Attempted fix for GitHub issue #73
12 years ago
Nicolas Favre-Felix f616c2992a Free Redis context for custom connections
GitHub issue #72
12 years ago
Nicolas Favre-Felix 34bb0b8090 More logs in pool.c (Error connecting to Redis) 12 years ago
Nicolas Favre-Felix df73255068 More logs in server.c (socket creation) 12 years ago
Nicolas Favre-Felix 54df3f3b7f Add docs for PUT in the command format section 12 years ago
Nicolas Favre-Felix 2666a13244 Merge branch 'update-hiredis' 12 years ago
Nicolas Favre-Felix 438a39319e Update hiredis to fd38e55d71 12 years ago
Nicolas Favre-Felix bf92a87c1b Print error message when log file can't be opened
References GitHub issue #65
12 years ago
Nicolas Favre-Felix 55481fafea Merge pull request #59 from dcosta72/master
Websocket SUBSCRIBE KeepAlive fixed
12 years ago
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
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