Commit Graph

  • 706c03aa8b Skip fetching RSS feeds if Tor is not active. akwizgran 2020-01-20 15:40:24 +00:00
  • c42a987927 Use amber icon when enabling transports. akwizgran 2020-01-16 12:33:36 +00:00
  • 297dbe0b16 Only update bridge and padding settings if network is enabled. akwizgran 2020-01-20 16:20:36 +00:00
  • 4130662e1f Notify callback of state changes while holding lock. akwizgran 2020-01-20 15:00:16 +00:00
  • c08bdf96cd Update javadocs for lock-safe methods. akwizgran 2020-01-20 14:48:33 +00:00
  • 8bb534564f Remove redundant logging. akwizgran 2020-01-20 14:03:12 +00:00
  • 5e60a717fc Remove debug logging. akwizgran 2020-01-17 12:38:43 +00:00
  • dd1509350c Close server socket when BT is disabled. akwizgran 2020-01-17 12:38:03 +00:00
  • 465ba3d337 Remove unnecessary inner class, state checks. akwizgran 2020-01-16 13:08:16 +00:00
  • 7561c5039e Reset backoff before notifying of new state. akwizgran 2020-01-16 13:01:41 +00:00
  • 242d6f8a0e Move to enabling state earlier in Tor startup. akwizgran 2020-01-16 12:38:03 +00:00
  • c554847b54 Add TransportStateEvent, rename existing events. akwizgran 2020-01-16 11:54:28 +00:00
  • d30b250389 Ensure server socket is closed. akwizgran 2020-01-16 11:35:32 +00:00
  • ecea2c587d Add method for getting reason why plugin is disabled. akwizgran 2020-01-16 11:05:36 +00:00
  • 43a91e2e57 Fix test expectations. akwizgran 2020-01-16 11:05:02 +00:00
  • ea288b998b Rename available/unavailable states. akwizgran 2020-01-16 09:58:12 +00:00
  • 48dc598ca3 Update tests. akwizgran 2020-01-16 09:47:49 +00:00
  • e2d63ac6a4 If adapter is disabled, forget that we enabled it. akwizgran 2020-01-15 17:48:12 +00:00
  • afc85cdf52 Check that server sockets are closed as expected. akwizgran 2020-01-15 17:40:20 +00:00
  • b2a1ea84f8 Provide more information about plugin states. akwizgran 2020-01-14 12:18:24 +00:00
  • fcc26c093b Avoid NPE if there's no TelephonyManager. akwizgran 2020-01-14 09:51:03 +00:00
  • 5a741bf13b Merge branch '1712-bluetooth-connection-wake-lock' into 'master' Torsten Grote 2020-06-26 16:11:36 +00:00
  • 5dc460851b Remove redundant logging. akwizgran 2020-06-26 15:33:37 +01:00
  • b805514f70 Use renewable wake lock, try to guess a "safe" tag. akwizgran 2020-06-26 14:42:14 +01:00
  • 69d94c9f29 Hold a wake lock while Bluetooth connections are open. akwizgran 2020-06-05 14:53:30 +01:00
  • 53d4b7a0df Merge branch '1712-simple-connection-limiter' into 'master' Torsten Grote 2020-06-26 11:36:21 +00:00
  • f663bf8667 Remove unused parameter. 1712-passive-connection-limiter akwizgran 2020-06-05 12:05:21 +01:00
  • ef5b91da89 Measure stability of each connection separately. akwizgran 2020-06-05 11:11:43 +01:00
  • 9909d205c7 Count stable connections even in case of connection failure. akwizgran 2020-06-05 11:10:06 +01:00
  • 9768b048d2 Impose limit on outgoing connections. akwizgran 2020-06-04 13:37:46 +01:00
  • 6dcad6c425 Count stable connections, but don't impose a connection limit. akwizgran 2020-06-04 11:16:05 +01:00
  • 648f26542c Simple connection limiter that closes connections cleanly. akwizgran 2020-05-05 17:07:05 +01:00
  • dcb5f95934 Merge branch '1712-prefer-lan-to-bluetooth' into 'master' akwizgran 2020-06-26 09:46:24 +00:00
  • 730d553b0a Fix screenshot test (again). akwizgran 2020-06-26 10:38:04 +01:00
  • 7736a3b6fc Use separate methods for registering incoming and outgoing connections. akwizgran 2020-06-26 09:59:03 +01:00
  • 95f427863d Remove transport preferences for briar-headless. akwizgran 2020-06-25 17:46:22 +01:00
  • ff8a422638 Merge branch '1712-connection-manager-refactoring' into 'master' Torsten Grote 2020-06-25 14:21:49 +00:00
  • 78d7fc2106 Fix bug in reporting of connection state, add regression tests. akwizgran 2020-06-02 12:00:06 +01:00
  • 8711e4782d Write any records in the queue before ending session. 1712-write-queued-records-before-ending-session akwizgran 2020-05-25 18:07:16 +01:00
  • cc943be540 Update javadoc. akwizgran 2020-06-01 15:30:30 +01:00
  • 6eb77465f6 Don't try to reconnect if the connection was closed cleanly. akwizgran 2020-05-25 17:15:00 +01:00
  • 35d1b406f7 Refactor transport preferences. akwizgran 2020-06-01 14:44:21 +01:00
  • 2add63657e Inner class can be static. akwizgran 2020-06-01 14:35:38 +01:00
  • d3751fbead Don't interrupt connections until priority is set. akwizgran 2020-06-01 14:23:08 +01:00
  • 4aaa8c3b93 Don't poll if already connected via a better transport. akwizgran 2020-05-25 17:16:42 +01:00
  • 5b04527c54 Fix screenshot test. akwizgran 2020-05-25 17:47:16 +01:00
  • 7d6b65913a Combine connection chooser with connection registry. akwizgran 2020-05-25 16:42:01 +01:00
  • 36747acac1 Extract better and worse transports from preferences. akwizgran 2020-05-25 14:47:34 +01:00
  • e8dbc00712 Refactor connection registry implementation. akwizgran 2020-05-25 14:22:27 +01:00
  • d3d7212b08 Add registry method for deciding which contacts to poll. akwizgran 2020-05-13 17:55:05 +01:00
  • 2919657b4a Add unit tests for connection chooser. akwizgran 2020-05-13 15:56:07 +01:00
  • 0c338b362e Add InterruptibleConnection interface for easier testing. akwizgran 2020-05-13 15:35:03 +01:00
  • 8dd993dd9d Interrupt connections outside the lock. akwizgran 2020-05-13 10:24:27 +01:00
  • 1b2b50d91b Exchange priority records and close redundant connections. akwizgran 2020-05-12 21:18:56 +01:00
  • ee9c771045 Add priority record for choosing between redundant connections. akwizgran 2020-05-11 16:27:36 +01:00
  • 9e6d67f13d Handle interrupts that occur before the outgoing session starts. akwizgran 2020-05-12 17:42:33 +01:00
  • 710b6d18ce Fix import in screenshot test. akwizgran 2020-05-12 21:35:55 +01:00
  • dd4aa67643 Refactor connection creation back into manager. akwizgran 2020-05-12 21:27:43 +01:00
  • 79482d5e3a Move connection management to its own package. akwizgran 2020-05-12 17:36:35 +01:00
  • ee0bf7218c Move some duplicated code into utility methods. akwizgran 2020-05-12 17:25:55 +01:00
  • c1101c7fe1 Factor inner classes out of ConnectionManagerImpl. akwizgran 2020-05-12 17:08:04 +01:00
  • 173b6006c4 Don't treat an incoming connection as an attempt to raise the limit. 1712-detect-bluetooth-connection-limit akwizgran 2020-05-08 16:57:16 +01:00
  • 99edb893f7 Check for stability whenever connections are closed. akwizgran 2020-05-08 16:45:52 +01:00
  • f063feedd4 Simplify backoff. akwizgran 2020-05-08 11:00:52 +01:00
  • 126f515760 Move responsibility for closing connections from limiter to plugin. akwizgran 2020-05-08 10:57:04 +01:00
  • e2b61483d6 Always accept incoming connections. akwizgran 2020-05-08 10:52:08 +01:00
  • 9771825c45 Back off between attempts to raise connection limit. akwizgran 2020-05-07 16:10:29 +01:00
  • e376744487 Update constructor args. akwizgran 2020-05-06 16:30:20 +01:00
  • 13cca9ca61 Occasionally try to raise the limit by allowing an extra connection. akwizgran 2020-05-06 16:20:44 +01:00
  • e464f9e7bd Close connections cleanly when starting key agreement. akwizgran 2020-05-06 15:19:02 +01:00
  • bd86ff2d5f Let the limiter know whether connections closed cleanly. akwizgran 2020-05-06 14:59:36 +01:00
  • bda3b2100a Raise the connection limit if connections are stable. akwizgran 2020-05-05 17:52:42 +01:00
  • 104a82aea9 Add unit test for connection limiter. akwizgran 2020-05-05 17:16:10 +01:00
  • d905451f48 Impose a fixed limit on the number of Bluetooth connections. akwizgran 2020-05-05 17:07:05 +01:00
  • 708452713d Merge branch '1712-detect-dead-bluetooth-connections' into 'master' Torsten Grote 2020-05-11 15:55:07 +00:00
  • c80d3196af Use milliseconds for timing. akwizgran 2020-05-11 15:42:23 +01:00
  • d1c2eb89a1 Merge branch '1712-fix-double-connection-counting' into 'master' Torsten Grote 2020-05-11 14:06:30 +00:00
  • 80fa7d29b2 Poll for connections in series, with a delay between attempts. 1712-bluetooth-poll-in-series akwizgran 2020-05-08 17:59:12 +01:00
  • 0db14bd9ad Delegate all other methods to wrapped InputStream. akwizgran 2020-05-08 16:10:32 +01:00
  • dd049012ce Add javadoc. akwizgran 2020-05-08 15:41:32 +01:00
  • c382ce921c Add unit test for TimeoutInputStream. akwizgran 2020-05-08 15:06:27 +01:00
  • 639dd43388 Only check timeouts when we have some streams to monitor. akwizgran 2020-05-08 14:35:50 +01:00
  • 99adf37deb Add timeout monitor for Bluetooth connections. akwizgran 2020-05-08 14:19:43 +01:00
  • 78391c604b Use keepalives to detect dead connections. akwizgran 2020-05-07 17:51:56 +01:00
  • c4273d22ed Delegate all other methods to wrapped InputStream. akwizgran 2020-05-08 16:10:32 +01:00
  • 21f3a9f3c7 Add javadoc. akwizgran 2020-05-08 15:41:32 +01:00
  • 0281eec0da Add unit test for TimeoutInputStream. akwizgran 2020-05-08 15:06:27 +01:00
  • d3fd309609 Only check timeouts when we have some streams to monitor. akwizgran 2020-05-08 14:35:50 +01:00
  • f2f278c393 Add timeout monitor for Bluetooth connections. akwizgran 2020-05-08 14:19:43 +01:00
  • e204d5a996 Don't count connections twice. akwizgran 2020-05-07 17:39:17 +01:00
  • 876efee1a8 Use keepalives to detect dead connections. akwizgran 2020-05-07 17:51:56 +01:00
  • d1cda4fb1e Add recently connected state to core and UI. recently-online-status akwizgran 2020-05-04 16:08:42 +01:00
  • 8fd9a40ffb Merge branch 'discover-bt-address-from-incoming-connection' into 'master' akwizgran 2020-04-29 15:31:30 +00:00
  • fb918457d4 Use constants for metadata keys. akwizgran 2020-04-29 15:37:21 +01:00
  • b5fe55faf3 Validate remote address. akwizgran 2020-04-29 15:28:27 +01:00
  • 7320099494 Also store properties discovered from outgoing connections. akwizgran 2020-04-28 17:56:01 +01:00
  • 346bec94e8 Discover contacts' BT addresses from incoming connections. akwizgran 2020-04-28 17:45:17 +01:00
  • 856ec61759 Merge branch '1722-lastChatActivity' into 'master' akwizgran 2020-04-27 09:20:08 +00:00
  • f61e2b399e [headless] Fix unit tests by passing only timestamp into OutputContact Torsten Grote 2020-04-20 09:15:56 -03:00
  • 6135f9152f Include last private chat activity in list of contacts Nico Alt 2020-04-08 12:00:00 +00:00