Commit Graph

856 Commits

Author SHA1 Message Date
Feross Aboukhadijeh
992cd77fc7 expose Swarm object for easy overriding 2017-03-10 13:38:43 -08:00
Feross Aboukhadijeh
ee9ebc506c remove requestHandler option 2017-03-10 13:38:27 -08:00
Feross Aboukhadijeh
f65983e466 do not filter out extra keys from 'update' events 2017-03-10 13:38:04 -08:00
Yoann Ciabaud
8482c3af0a Add extra data on ws annouce event 2017-03-09 11:19:46 +01:00
Yoann Ciabaud
1efb832dd7 Remove debug log 2017-03-09 11:19:46 +01:00
Yoann Ciabaud
146d4d46dd Extension point on requests and responses 2017-03-09 11:19:46 +01:00
Feross Aboukhadijeh
f5a32ff13d Merge pull request #217 from feross/fix-emails
Update ignore emails
2017-03-08 15:05:34 -08:00
Diego Rodríguez Baquero
386f4b02d7 Update update-authors.sh 2017-03-08 12:37:03 -05:00
Diego Rodríguez Baquero
862180d88f Merge pull request #216 from GusCaplan/patch-1
very much wrong email
2017-03-08 12:06:09 -05:00
Gus Caplan
3ddd423e9d very much wrong email 2017-03-08 05:16:44 -06:00
Feross Aboukhadijeh
2344f8347d authors 2017-03-08 02:16:29 -08:00
Feross Aboukhadijeh
13c4e88746 9.0.3 2017-03-08 02:12:28 -08:00
Feross Aboukhadijeh
173161cc47 Merge pull request #209 from GusCaplan/patch-1
Update common-node.js
2017-03-08 02:12:07 -08:00
Feross Aboukhadijeh
714400abae use correct API signature in querystring methods 2017-03-08 02:07:48 -08:00
Feross Aboukhadijeh
4e75a11602 9.0.2 2017-03-08 01:34:14 -08:00
Feross Aboukhadijeh
0c973661d2 Merge pull request #215 from feross/upgradereq
Delete `socket.upgradeReq` when it is no longer needed to reduce memory usage
2017-03-08 01:32:57 -08:00
Feross Aboukhadijeh
a09158bb4b Delete socket.upgradeReq when it is no longer needed to reduce memory usage
cc @lpinca
2017-03-07 13:22:51 -08:00
Feross Aboukhadijeh
1631f611fa authors 2017-03-07 13:11:11 -08:00
Feross Aboukhadijeh
9999741e7f 9.0.1 2017-03-07 13:09:59 -08:00
Feross Aboukhadijeh
5b05a43cce Merge pull request #213 from lpinca/bufferutil
add bufferutil as optional dependency
2017-03-07 13:09:25 -08:00
Luigi Pinca
d22ad6b6fa add bufferutil as optional dependency 2017-03-03 14:00:55 +01:00
Feross Aboukhadijeh
490138c9a3 9.0.0 2017-03-01 22:57:35 -08:00
Feross Aboukhadijeh
e4eb1a8069 Merge pull request #212 from feross/filter-cb
BREAKING: change how the filter function works
2017-03-01 22:57:09 -08:00
Feross Aboukhadijeh
40202a00b7 BREAKING: change how the filter function works
It's non-standard for a callback function to take a non-error argument
in the first position.

So instead of the filter callback accepting three types of arguments:

cb(true) // allowed
cb(false) // disallowed
cb(new Error('custom message')) // disallowed with custom message

It now accepts two forms:

cb(new Error('custom message')) // disallowed with custom message
cb(null) // allowed
2017-03-01 22:54:40 -08:00
Feross Aboukhadijeh
eef8bdd326 8.6.1 2017-03-01 22:33:51 -08:00
Feross Aboukhadijeh
6fdb3067e2 simple-peer@7 2017-03-01 22:33:35 -08:00
Feross Aboukhadijeh
0951f21a95 8.6.0 2017-03-01 22:30:00 -08:00
Feross Aboukhadijeh
3b17130092 Merge pull request #211 from feross/deps
Update dependencies
2017-03-01 22:28:34 -08:00
Feross Aboukhadijeh
3c7a637efd ws@2 2017-03-01 22:27:56 -08:00
Feross Aboukhadijeh
de5578a565 simple-websocket@5 2017-03-01 22:27:49 -08:00
Feross Aboukhadijeh
28b6384fda 8.5.2 2017-02-28 15:45:29 -08:00
Feross Aboukhadijeh
1dd1cc32da Revert "client: socketPool should not be shared across clients"
This reverts commit 3f3db7deb1.
2017-02-28 15:41:52 -08:00
Feross Aboukhadijeh
78722e0a05 8.5.1 2017-02-28 15:31:53 -08:00
Feross Aboukhadijeh
7652e7465c Merge pull request #208 from feross/fix-205
Fix socket.infoHashes access error
2017-02-28 15:31:05 -08:00
Gus Caplan
e771c0f57e Update common-node.js 2017-02-21 17:16:18 -06:00
Gus Caplan
9962d31e69 Update common-node.js
i was just reading the source and noticed this, if there is some reason it won't work please let me know
2017-02-21 17:07:03 -06:00
Feross Aboukhadijeh
ccb50a7ee9 add one missing self.destroyed check 2017-02-21 01:51:08 -08:00
Feross Aboukhadijeh
fe11c695cb do not close socket even when it's not in other swarms 2017-02-21 01:50:48 -08:00
Feross Aboukhadijeh
b2c2b8f0d0 do not access socket.infoHashes if socket is destroyed 2017-02-21 01:50:30 -08:00
Feross Aboukhadijeh
40707a1605 8.5.0 2017-02-13 17:39:46 -08:00
Feross Aboukhadijeh
5375506f56 Merge pull request #202 from feross/unordered-array-remove
Use unordered-array-remove for better performance!
2017-02-13 17:38:03 -08:00
Feross Aboukhadijeh
7d2318dce6 Use unordered-array-remove for better performance! 2017-02-13 17:30:22 -08:00
Feross Aboukhadijeh
9f88f46c76 8.4.0 2017-02-09 14:16:53 -08:00
Feross Aboukhadijeh
a469740603 Merge pull request #198 from feross/fix-196
Fix stats and leaked websockets
2017-02-09 23:16:28 +01:00
Feross Aboukhadijeh
da7d7323df 8.3.1 2017-02-09 14:14:10 -08:00
Feross Aboukhadijeh
b3103181fa Merge pull request #201 from feross/disable-clientTracking
Disable ws server clientTracking
2017-02-09 23:13:14 +01:00
Feross Aboukhadijeh
3d81e68124 standard 2017-02-08 16:22:13 -08:00
Diego Rodríguez Baquero
7fea1964af Update server.js 2017-02-08 16:53:50 -05:00
Diego Rodríguez Baquero
a1ee19d59a Set ws server clientTracking to false
https://github.com/feross/bittorrent-tracker/pull/200#issuecomment-278450630
2017-02-08 16:47:54 -05:00
Feross Aboukhadijeh
3f3db7deb1 client: socketPool should not be shared across clients
Caught this issue because of the new eviction tests. Essentially, this
change moves the socketPool into the client instance instead of a
reused variable at the module level.

When a client sends stop (or is evicted) the server will close the
websocket connection if that client is not in any other swarms (based
on peerId). However, if we are using a single socket for multiple
clients (as was the case before this commit), then other clients will
have their sockets unintentionally closed by the server.
2017-02-08 13:20:41 -08:00