Commit graph

61 commits

Author SHA1 Message Date
calzoneman
be4011cda1 Replace old ActiveLock system with a slightly better one
CyTube has been crashing recently due to things attempting to release
the reference after the channel was already closed (apparently the
uncaughtException handler isn't called for this?).  This newer
implementation keeps track of what is ref'ing and unref'ing it, so it
can log an error if it detects a discrepancy.

Also changed the server to not delete the refCounter field from the
channel when it's unloaded, so that should reduce the number of errors
stemming from it being null/undefined.
2015-12-25 17:07:25 -08:00
calzoneman
bfe76dae0e Check X-Forwarded-For on sockets (resolves #528) 2015-12-12 16:59:58 -08:00
calzoneman
5ead24e45e Merge branch '3.0' into web-refactoring 2015-11-02 21:07:50 -08:00
calzoneman
6505aa2f5e More refactoring 2015-11-01 17:42:20 -08:00
calzoneman
23333ee266 Remove console logging of clientErrors from HTTP/socket.io 2015-10-30 22:26:20 -07:00
calzoneman
13d4a49976 Move contact page to its own route handler 2015-10-27 22:04:21 -07:00
calzoneman
50ca141f1d Web refactoring 2015-10-26 22:56:53 -07:00
calzoneman
56a2a52bdd Fixes 2015-10-01 22:02:59 -07:00
calzoneman
20dc871303 Use create-error for better error creation 2015-09-24 23:36:05 -07:00
calzoneman
5ec9c2b029 Start refactoring channel storage 2015-09-23 21:56:04 -07:00
calzoneman
0109a87e55 package: build with babel for ES2015 support
* Rename lib/ -> src/
* Add `postinstall` npm target for compiling src files to lib
* Add `build-watch` npm target for development with babel --watch
* Add `lib/` to .gitignore
* Add `source-map-support` module for babel-generated sourcemaps
2015-09-23 19:27:04 -07:00
Renamed from lib/server.js (Browse further)