Audrius Butkevicius and Jakob Borg
2751be57dc
lib/connections: Fix relay connections when two devices use the same relay ( fixes #4778 ) ( #4779 )
2018-02-25 16:12:46 +01:00
Audrius Butkevicius and Simon Frei
8df90bb475
lib/scanner: Track modified by in symlinks ( #4777 )
2018-02-25 14:51:37 +01:00
Audrius Butkevicius and Jakob Borg
27d5b17096
lib/osutil: Fix priority lowering on Windows
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4686
2018-01-19 07:21:05 +01:00
Audrius Butkevicius and Jakob Borg
8e9c9b9553
lib/osutil: Fix priority lowering on Windows
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4686
2018-01-18 17:03:24 +00:00
Audrius Butkevicius and Jakob Borg
53f4dfe83c
lib/model: Fix panic when auto-accepting existing paused folder ( fixes #4636 )
...
This no longer pokes at model internals, and only touches the config.
As a result, model handles this in CommitConfiguration, which restarts
the folders if things change, which repopulate m.folderDevice, m.deviceFolder
and other interal mappings.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4639
2018-01-03 07:42:25 +00:00
Audrius Butkevicius and Jakob Borg
b0e2050cdb
cmd/syncthing: UI for version restoration ( fixes #2599 ) ( #4602 )
...
cmd/syncthing: Add UI for version restoration (fixes #2599 )
2018-01-01 15:39:23 +01:00
Audrius Butkevicius and Jakob Borg
c7f136c2b8
lib/upnp: Each service is it's own NAT device
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4625
2017-12-30 19:16:08 +00:00
Audrius Butkevicius
72172d853c
vendor: Move back to upstream KCP ( fixes #4407 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4614
2017-12-27 11:33:12 +00:00
Audrius Butkevicius and Simon Frei
c58b383b6d
gui: Add debug tab to settings (ref #2644 )
...
Just because there are a ton of people struggling to set env vars.
Perhaps this should live in advanced settings, and perhaps we should have a button to view the log.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4604
LGTM: calmh, imsodin
2017-12-24 22:26:05 +00:00
Audrius Butkevicius
2547a29dd7
lib/connections: Don't close nil connections ( fixes #4605 )
2017-12-18 14:40:51 +00:00
Audrius Butkevicius and Jakob Borg
445c4edeca
gui, lib/config, lib/model: Support auto-accepting folders ( fixes #2299 )
...
Also introduces a new Waiter interface for config changes and segments the
configuration GUI.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4551
2017-12-07 07:08:24 +00:00
Audrius Butkevicius
b9ed6c4c2c
vendor: Update pfilter and go-stun ( fixes #4561 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4575
2017-12-06 21:28:36 +00:00
Audrius Butkevicius and Jakob Borg
60bceb0f09
vendor: Update pfilter (ref #4561 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4572
2017-12-06 06:19:49 +00:00
Audrius Butkevicius and Jakob Borg
95a65bf0d0
lib/config: Support symlinked root ( fixes #4542 , fixes #4353 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4545
LGTM: imsodin, calmh
2017-11-26 07:51:22 +00:00
Audrius Butkevicius and Jakob Borg
99b00b6a5e
vendor: Update pfilter ( fixes #4537 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4539
2017-11-23 08:29:56 +01:00
Audrius Butkevicius
67c39b2512
vendor: Update pfilter ( fixes #4537 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4539
2017-11-22 21:16:49 +00:00
Audrius Butkevicius and Jakob Borg
0dd7934405
lib/connections: Fix local address priority
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4534
LGTM: imsodin, calmh
2017-11-22 08:06:34 +01:00
Audrius Butkevicius and Jakob Borg
4922b46fbd
lib/connections: Fix local address priority
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4534
LGTM: imsodin, calmh
2017-11-22 07:05:49 +00:00
Audrius Butkevicius and Jakob Borg
075a699aae
lib/connections: Trust the model to tell us if we are connected
...
This should address issue as described in https://forum.syncthing.net/t/stun-nig-party-with-paused-devices/10942/13
Essentially the model and the connection service goes out of sync in terms of thinking if we are connected or not.
Resort to model as being the ultimate source of truth.
I can't immediately pin down how this happens, yet some ideas.
ConfigSaved happens in separate routine, so it's possbile that we have some sort of device removed yet connection comes in parallel kind of thing.
However, in this case the connection exists in the model, and does not exist in the connection service and the only way for the connection to be removed
in the connection service is device removal from the config.
Given the subject, this might also be related to the device being paused.
Also, adds more info to the logs
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4533
2017-11-21 08:32:23 +01:00
Audrius Butkevicius and Jakob Borg
44a542391e
lib/connections: Trust the model to tell us if we are connected
...
This should address issue as described in https://forum.syncthing.net/t/stun-nig-party-with-paused-devices/10942/13
Essentially the model and the connection service goes out of sync in terms of thinking if we are connected or not.
Resort to model as being the ultimate source of truth.
I can't immediately pin down how this happens, yet some ideas.
ConfigSaved happens in separate routine, so it's possbile that we have some sort of device removed yet connection comes in parallel kind of thing.
However, in this case the connection exists in the model, and does not exist in the connection service and the only way for the connection to be removed
in the connection service is device removal from the config.
Given the subject, this might also be related to the device being paused.
Also, adds more info to the logs
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4533
2017-11-21 07:25:38 +00:00
Audrius Butkevicius and Jakob Borg
0518a92cdb
lib/connections: Only announce punchable nats ( fixes #4519 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4523
2017-11-17 14:46:45 +00:00
AudriusButkevicius and Jakob Borg
aecd7c64ce
lib/connections: Parallel dials in the same priority ( fixes #4456 )
...
Well Tested(TM)
Introduces a potential issue where we always pick some connectable but dodgy connection that breaks
soon after the TLS handshake.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4489
2017-11-15 09:36:33 +00:00
Audrius Butkevicius
386cb274bd
lib/model: Incremental block stats usage reporting
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4498
LGTM: calmh
2017-11-09 21:16:29 +00:00
AudriusButkevicius and Jakob Borg
0ee1146e1c
lib/connections: Indicate stack in transport ( fixes #4463 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4486
2017-11-07 07:25:05 +00:00
AudriusButkevicius and Jakob Borg
88180904f2
cmd/syncthing: Don't cache stale options in main ( fixes #4474 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4491
LGTM: imsodin, calmh
2017-11-07 07:20:19 +00:00
AudriusButkevicius
c5f90d64bc
cmd/syncthing: Report if weak hash is enabled
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4490
2017-11-06 15:04:59 +00:00
AudriusButkevicius and Jakob Borg
62a4106a79
lib/connections: Fix lan detection ( fixes #4421 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4487
2017-11-06 14:05:29 +00:00
Audrius Butkevicius and Jakob Borg
ff0a83fe5b
vendor: Fix kcp deadlock
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4461
2017-10-25 21:57:51 +02:00
Audrius Butkevicius
9c60bb8336
vendor: Fix kcp deadlock
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4461
2017-10-25 19:34:38 +00:00
Audrius Butkevicius
a9c221189b
lib/connections: Stun resolves server adress beforehand ( fixes #4453 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4454
2017-10-22 18:48:06 +00:00
Audrius Butkevicius
b2966957e0
lib/connections: Add KCP blacklist period
2017-10-22 13:56:52 +01:00
Audrius Butkevicius
0d30166357
lib/connections: Use own KCP fork, move listener setup earlier (ref #4446 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4452
2017-10-22 12:36:36 +00:00
Audrius Butkevicius and Jakob Borg
622b614f31
all: Ignore Sync errors on directories ( fixes #4432 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4449
2017-10-21 22:00:46 +00:00
Audrius Butkevicius and Jakob Borg
b1ade6d0c0
gui: Do not prompt for UR changes if disabled ( fixes #4444 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4448
2017-10-21 18:46:07 +00:00
Audrius Butkevicius and GitHub
fb7264a663
cmd/syncthing: Enable KCP by default
...
Also, use upstream library, as my changes have been merged.
2017-10-17 23:17:10 +01:00
Audrius Butkevicius and Jakob Borg
889814a1af
gui: Add uncamel filter
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4428
LGTM: imsodin, calmh
2017-10-17 07:56:36 +00:00
Audrius Butkevicius and Jakob Borg
059185b325
cmd/syncthing: Expand usage stats even more (ref #3628 )
...
Also add diffing functionality
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4422
2017-10-15 07:45:15 +00:00
Audrius Butkevicius
1e9e9cbebb
cmd/syncthing: Uptime should be an integer
2017-10-14 18:22:30 +01:00
Audrius Butkevicius
becbb3b123
lib/model: Fix tests not to require Go 1.9
2017-10-12 22:36:20 +01:00
Audrius Butkevicius and Jakob Borg
9d3f3847ed
lib/model: Fix removal of paused folders, improve tests ( fixes #4405 )
2017-10-12 08:23:33 +02:00
Audrius Butkevicius and Jakob Borg
74c8d34805
lib/model: Centralize error reporting, modified files are errors ( fixes #4392 )
2017-10-12 08:23:33 +02:00
Audrius Butkevicius and Jakob Borg
5ec1490be0
lib/fs: Ignore directory fsync failures
2017-10-12 08:22:29 +02:00
Audrius Butkevicius and Jakob Borg
2760d032ca
cmd/syncthing: Add more stats to usage reports (ref #3628 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4347
2017-10-12 06:16:46 +00:00
Audrius Butkevicius and Jakob Borg
e85ce7c94e
lib/model: Support removing paused folders ( fixes #4357 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4358
LGTM: imsodin, calmh
2017-09-09 15:08:59 +00:00
Audrius Butkevicius and Jakob Borg
9e6a1fdcd4
vendor: Update kcp, removes closeConn ( fixes #4343 )
2017-09-02 16:11:48 +02:00
Audrius Butkevicius and Jakob Borg
cbcc3ea132
lib/connections: Use our own fork of kcp ( fixes #4063 )
...
This updates kcp and uses our own fork which:
1. Keys sessions not just by remote address, but by remote address +
conversation id 2. Allows not to close connections that were passed directly
to the library. 3. Resets cache key if the session gets terminated.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4339
LGTM: calmh
2017-09-02 06:04:35 +00:00
Audrius Butkevicius and Jakob Borg
ab132ff6fe
lib: Folder marker is now a folder
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4341
LGTM: calmh
2017-09-02 05:52:38 +00:00
Audrius Butkevicius
a69ba18f62
lib/model: Some platforms do not support usage checks ( fixes #4321 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4322
2017-08-22 18:13:58 +00:00
Audrius Butkevicius and Jakob Borg
0a96a1150b
lib/model, lib/ignores: Properly handle out of folder ignores and free space checks ( fixes #4313 , fixes #4314 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4318
2017-08-22 06:45:00 +00:00
Audrius Butkevicius and Jakob Borg
b8c249cddc
lib/model: Move stale scan check info finisher (ref #4305 , fix #3742 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4317
2017-08-22 06:42:09 +00:00
Audrius Butkevicius
e8ba6d4771
lib/upnp: Fix build
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4316
2017-08-21 11:41:40 +00:00
Audrius Butkevicius
606fce09ca
lib/upnp: Disable confusing messages
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4312
2017-08-21 10:03:25 +00:00
Audrius Butkevicius and Jakob Borg
3d8b4a42b7
all: Convert folders to use filesystem abstraction
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4228
2017-08-19 14:36:56 +00:00
Audrius Butkevicius
94acc20dd6
cmd/strelaysrv: Fix a few connection and routine leaks ( fixes #4245 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4273
2017-07-26 19:18:00 +00:00
Audrius Butkevicius
d637148cca
cmd/strelaypoolsrv: Show popup on row hover
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4201
2017-06-07 22:06:00 +00:00
Audrius Butkevicius and Jakob Borg
9667a0a618
lib/connections: Fix race ( fixes #4177 )
2017-06-07 10:17:01 +02:00
Audrius Butkevicius
91d37f35bc
lib/model: Use up to date device name, do not provide name to unknown devices ( fixes #4164 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/4168
2017-05-22 19:58:33 +00:00
Audrius Butkevicius and Jakob Borg
51518490c6
lib/connections: Fix KCP from locking up the service ( fixes #4072 )
2017-05-21 22:16:21 +02:00
Audrius Butkevicius and Jakob Borg
2c10beed0b
gui: Add (?d) and (?i) to ignores guide
2017-05-21 22:16:21 +02:00
Audrius Butkevicius and Jakob Borg
ceea5ebeb3
lib/connections, vendor: Change KCP mux to SMUX
...
Closes #4032
2017-03-09 14:03:09 +01:00
Audrius Butkevicius and Jakob Borg
0da0774ce4
lib/connections: Add KCP support ( fixes #804 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3489
2017-03-07 12:44:16 +00:00
Audrius Butkevicius and Jakob Borg
120e6eab2c
lib/sync: Fix a race in unlocker logging ( fixes #3884 )
...
Other routines use atomics, hence even if we are under a lock, we should
too.
We might atomically store with
Not sure how it happens, but it's between lines
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3974
2017-02-08 22:31:19 +00:00
Audrius Butkevicius and Jakob Borg
72de47df00
lib/model: Increase in-flight buffer from 2mb to 8mb, download 2 files at a time
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3972
2017-02-08 20:00:55 +00:00
Audrius Butkevicius
67acef1794
lib/weakhash, lib/model, cmd/syncthing: Decide if to use weakhash on startup ( fixes #3938 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3949
2017-02-06 10:27:11 +00:00
Audrius Butkevicius and Jakob Borg
2c4b92d410
lib/connections: Fix rate limiting on arm64 ( fixes #3921 )
...
Skip-check: metalint
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3922
2017-01-23 20:55:00 +00:00
Audrius Butkevicius and Jakob Borg
dd78177ae0
scanner: Allow disabling weak hash in scanning ( fixes #3891 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3905
2017-01-23 13:50:32 +00:00
Audrius Butkevicius and Jakob Borg
1a1e35d998
lib/osutil: Replace IsDir with TraversesSymlink ( fixes #3839 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3883
LGTM: calmh
2017-01-10 07:09:31 +00:00
Audrius Butkevicius and Jakob Borg
29d010ec0e
lib/model, lib/weakhash: Hash using adler32, add heuristic in puller
...
Adler32 is much faster, and the heuristic avoid the obvious cases where it
will not help.
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3872
2017-01-04 21:04:13 +00:00
Audrius Butkevicius and Jakob Borg
bab7c8ebbf
all: Add folder pause, make pauses permanent ( fixes #3407 , fixes #215 , fixes #3001 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3520
2016-12-21 18:41:25 +00:00
AudriusButkevicius and Jakob Borg
aa3ef49dd7
lib/model: Fix lock order
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3823
2016-12-21 12:22:18 +00:00
AudriusButkevicius and Jakob Borg
ba17cc0a11
gui: Show introducedBy ( fixes #3809 )
2016-12-21 11:01:15 +01:00
AudriusButkevicius and Jakob Borg
9e0afb7d8a
lib/connections: Support setting traffic class ( fixes #3790 )
2016-12-21 11:01:15 +01:00
AudriusButkevicius and Jakob Borg
9e7d50bc76
cmd/syncthing: Explain corruption panics ( fixes #3689 )
2016-12-21 11:01:15 +01:00
Audrius Butkevičius and Jakob Borg
d8d3f05164
cmd/stcli: Import from syncthing-cli repository
2016-12-17 01:33:17 +01:00
Audrius Butkevicius
542b76f687
lib/model: Moar sleep
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3807
2016-12-16 12:05:27 +00:00
Audrius Butkevicius
0582836820
lib/model, lib/scanner: Efficient inserts/deletes in the middle of the file
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3527
2016-12-14 23:30:29 +00:00
Audrius Butkevicius
0dcf2f1bc8
cmd/strelaysrv: Use legacy dial ( fixes #3753 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3784
2016-12-02 22:45:08 +00:00
Audrius Butkevicius and Jakob Borg
99922feb3b
gui: Disable device removal when we know it will be reintroduced
...
Skip-check: pr-build-windows
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3762
2016-12-02 21:07:02 +00:00
Audrius Butkevicius and Jakob Borg
bb23e3940e
cmd/strelaysrv: Use listen address for outgoing HTTP requests ( fixes #3682 )
2016-11-13 09:32:05 +01:00
Audrius Butkevicius and Jakob Borg
94e4370c7e
cmd/strelaysrv: Outbox will get GCed ( fixes #3718 )
2016-11-13 09:32:05 +01:00
Audrius Butkevicius and Jakob Borg
38d28c3f4a
lib/relay: Close invitation channel in all error cases ( fixes #3726 )
2016-11-13 09:32:05 +01:00
Audrius Butkevicius and Jakob Borg
f60b424d70
lib/config: Raw() -> RawCopy()
2016-11-13 09:29:35 +01:00
Audrius Butkevicius and Jakob Borg
a1a91d5ef4
lib/model: Introducer can remove stuff it introduced ( fixes #1015 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3522
2016-11-13 09:29:33 +01:00
Audrius Butkevicius and Jakob Borg
0b88cf1d03
lib/model: Introducer can remove stuff it introduced ( fixes #1015 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3522
2016-11-11 15:54:25 +01:00
Audrius Butkevicius and Jakob Borg
56e2ba29d0
lib/config: Subscribers get a copy of the config
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3722
2016-11-11 14:52:23 +00:00
Audrius Butkevicius and Jakob Borg
ec2b097313
lib/model: Introducer can remove stuff it introduced ( fixes #1015 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3522
2016-11-08 00:40:48 +08:00
Audrius Butkevicius
caaab462bc
lib/sync: Fix broken build
2016-11-05 02:31:52 +00:00
Audrius Butkevicius
da413b823b
lib/sync: Add option for sasha-s/go-deadlock
2016-11-05 02:24:53 +00:00
Audrius Butkevicius
14937e7dd2
build: Fix proto builder on Windows
2016-11-03 22:06:51 +00:00
Audrius Butkevicius
3418497f3d
lib/sync: Log everything...
2016-11-03 21:33:33 +00:00
Audrius Butkevicius
7fba8cf759
lib/sync: Print all lockers, add holder to RWMutex
2016-10-30 00:17:25 +01:00
Audrius Butkevicius
815588daba
lib/sync, lib/model: Capture locker routine ID, print locker details on deadlock
2016-10-18 21:00:01 +01:00
Audrius Butkevicius
309795198d
cmd/strelaypoolsrv: Remove hostnames from statusAddr
2016-10-08 10:03:53 +01:00
Audrius Butkevicius
7db00132b2
cmd/strelaysrv: Fix sorting zeros versus undefined
2016-10-07 21:24:47 +01:00
Audrius Butkevicius
76a2862b7a
authors: Add Xavier O.
2016-10-07 21:24:47 +01:00
Audrius Butkevicius and Jakob Borg
76b903b2e0
lib/upgrade: Cleanup failed upgrades ( fixes #3500 , fixes #3530 )
...
GitHub-Pull-Request: https://github.com/syncthing/syncthing/pull/3535
2016-08-23 06:53:39 +00:00
Audrius Butkevicius and Jakob Borg
be38c2111f
cmd/strelaysrv: Add uPNP support, ability to set listen protocol ( fixes #3503 , fixes #3505 , fixes #3506 )
2016-08-23 08:43:27 +02:00
Audrius Butkevicius and Jakob Borg
1de787fab8
cmd/strelaypoolsrv: Ability to select listen protocol
2016-08-23 08:42:57 +02:00
Audrius Butkevicius and Jakob Borg
81f683a61c
cmd/stdiscosrv: Generate keys if missing on startup ( fixes #3511 )
2016-08-23 08:41:49 +02:00
Audrius Butkevicius and Jakob Borg
db6f68d031
cmd/stdiscosrv: Use UTC in database timestamps ( fixes #3509 )
2016-08-23 08:41:15 +02:00