Simo Kinnunen
a2f55dc8e0
Use eventemitter3 for provider.
2015-06-04 12:07:30 +09:00
Simo Kinnunen
736b6f769e
Reaper decides if a device is present or not. Allows devices to "come back to life" if they start beating again.
2015-06-03 18:49:42 +09:00
Simo Kinnunen
2b84476c42
More realistic default heartbeat timeouts.
2015-06-03 16:35:57 +09:00
Simo Kinnunen
11a042d0aa
Looks like the DB needs ready: false on device absence or plugged in devices show up as immediately available. That's a bug, will need to investigate later.
2015-06-02 16:14:39 +09:00
Simo Kinnunen
9130717e0e
The doubly linked list implementation was revealed to be buggy by simple unit tests. Fixed.
2015-06-02 15:35:16 +09:00
Simo Kinnunen
d806d4fe54
EventEmitter constructor was not being called in many places. It did work due to the EventEmitter3 constructor being empty, but we can't rely on that.
2015-06-02 13:26:43 +09:00
Simo Kinnunen
181829b55c
Remove left over bits from the old heartbeat implementation.
2015-06-02 13:16:04 +09:00
Simo Kinnunen
6443215a7c
Reaper should load initial state before listening to changes. There is a small window where if a device is removed or added during reaper startup it might go unnoticed, but it shouldn't be too much of a problem for us.
2015-06-02 10:44:39 +09:00
Simo Kinnunen
92c18539fc
Move ttlset to the common util folder. Could be used by something else too.
2015-06-02 10:39:43 +09:00
Simo Kinnunen
25544d1a1a
In-memory reaper. TtlSet needs tests.
2015-06-01 17:41:23 +09:00
Simo Kinnunen
c1357ac540
Try to read frames immediately instead of waiting for a readable event. We may already have received it before.
2015-04-30 20:59:38 +09:00
Simo Kinnunen
5bb05f52f6
Move some screen utilities to the global util directory so that they can be used for other things too.
2015-04-30 13:41:32 +09:00
Simo Kinnunen
ae9f2b5ab0
Remove the now unused --disable-screen-public-proxy option.
2015-04-29 18:08:55 +09:00
Simo Kinnunen
105795bec7
Give open device ports their own options. Preparing for future refactor.
2015-04-29 16:38:03 +09:00
Simo Kinnunen
b3b538c561
Remove support/http as unused.
2015-04-29 16:26:38 +09:00
Simo Kinnunen
2391d249e0
Make screenshots work again.
2015-04-29 13:10:46 +09:00
Simo Kinnunen
f90d1f4a4a
Use sendStatus instead of status where applicable.
2015-04-28 21:19:28 +09:00
Simo Kinnunen
2123a475e3
Don't allow minicap to fail more than 3 times in 10s.
2015-04-27 16:10:41 +09:00
Simo Kinnunen
688ddda713
Fix unexpected minicap death during start causing a TimeoutError, causing the licecycle to end unnecessarily. Now it will just try again like it should have from the start.
2015-04-27 11:48:42 +09:00
Simo Kinnunen
9ea0839b0b
Rotate canvas image on client side when necessary. Minicap now always returns the image in upright position for newer devices.
2015-04-23 14:45:10 +09:00
Simo Kinnunen
7202f102d9
Remove duplicate code.
2015-04-23 09:57:09 +09:00
Simo Kinnunen
51bad5ec59
Oops, mistakenly left a console.log behind.
2015-04-17 17:29:34 +09:00
Simo Kinnunen
feb77c4396
Don't read new frames before the previous frame has been sent.
2015-04-17 17:21:38 +09:00
Simo Kinnunen
07fb3b530c
Allow minicap to skip frames when necessary.
2015-04-16 19:50:38 +09:00
Simo Kinnunen
88162e8a33
Restart FrameProducer if it dies unexpectedly.
2015-04-16 16:35:36 +09:00
Simo Kinnunen
95e9dd0b82
Integrate new minicap along with a moderate rewrite. What's currently missing is recovering from socket death.
2015-04-15 18:55:46 +09:00
Gunther Brunner
e1a7560bc0
Added optional --user-profile-url for opening user profile page in an external domain, it was hardcoded.
2015-03-17 19:48:41 +09:00
Simo Kinnunen
bfd5cb70b1
Change install timeout to 5min.
2015-02-25 15:06:19 +09:00
Gunther Brunner
5c5bd7a822
Updated almost all dependencies.
...
Socket.io' has-binary PR finally got merged so updating to the latest version.
2015-02-24 18:59:56 +09:00
Simo Kinnunen
21b4ebe9e4
Ensure we add 'http://' to URLs even when a username is used.
2015-02-06 12:23:12 +09:00
Simo Kinnunen
9209b923c7
Support dotless activity names.
2015-02-05 22:07:58 +09:00
Simo Kinnunen
a726b1b30e
Use eventemitter3 for wirerouter. Is allegedly faster.
2015-01-08 18:36:58 +09:00
Simo Kinnunen
8b9e5d58c9
Too much overlap in storage plugin URLs for meaningful loadbalancing and config simplicity. Make poorxy emulate the real situation and change related URLs.
2015-01-07 14:04:36 +09:00
Simo Kinnunen
7c16c40dae
Make it a bit easier to tell image plugin endpoint apart from normal storage endpoints. It still sucks though.
2015-01-06 19:56:21 +09:00
Simo Kinnunen
2d4d24a19d
Allow screen URL pattern to be changed.
2015-01-06 18:52:54 +09:00
Gunther Brunner
91b1861d8d
Fixed autofill for HTTPS.
...
Added dummy API endpoint for autofill POST requests.
Autofill also reads the CSRF token from cookies and doesn't require an 'about:blank' anymore on the forms.
2015-01-06 18:35:23 +09:00
Simo Kinnunen
5bbe7d33a6
Fix display information.
2014-12-19 17:19:09 +09:00
Simo Kinnunen
eb841161ac
Error if unable to resolve endpoints.
2014-12-18 16:29:15 +09:00
Simo Kinnunen
2f8116dfe6
Set device absent when provider is stopped.
2014-12-18 16:14:41 +09:00
Simo Kinnunen
f275d9e563
Don't add secondary indexes to the log database. It's huge.
2014-12-17 23:26:40 +09:00
Simo Kinnunen
ee81ab02d5
Use the request module for fetching screenshots. Makes it easier to use https if necessary.
2014-12-17 21:58:56 +09:00
Simo Kinnunen
efa38d3e1a
Use url.resolve for storageUrl to prevent problems with slashes.
2014-12-17 21:35:17 +09:00
Simo Kinnunen
b2e114c9be
Change all "api" URLs. Ideally the path prefix would be an option.
2014-12-17 21:29:51 +09:00
Simo Kinnunen
436fa6eff9
Remove unused screenshot plugin.
2014-12-17 21:25:10 +09:00
Simo Kinnunen
e43ae34d4b
Make all zmq endpoints use srv records.
2014-12-17 21:01:20 +09:00
Simo Kinnunen
f0aae7d4e5
The srv resolver should be easier to use now.
2014-12-17 20:30:52 +09:00
Simo Kinnunen
23621d0bdd
The DB should now be able to connect to SRV records. It will also attempt to fail over once if a connection closes.
2014-12-17 17:55:58 +09:00
Simo Kinnunen
26deca8d9f
Remove unused require.
2014-12-16 21:32:42 +09:00
Simo Kinnunen
6e493c6178
Ignore unknown browsers instead of refusing to start.
2014-12-16 21:08:37 +09:00
Simo Kinnunen
8da6297350
Make screenshots work again.
2014-12-11 18:46:15 +09:00