Jakob Borg
283671fa9d
Remove old dead code
2015-11-04 20:15:36 +00:00
Jakob Borg
435c29755d
We haven't had cleartext passwords in the config for ages
2015-11-04 20:15:11 +00:00
Jakob Borg
686f91777c
Don't force rescan dirs and symlinks
...
We can't look for changed modtime on these as we don't track the modtime
to start with.
2015-11-04 19:53:07 +00:00
Audrius Butkevicius
2aa028facb
Add user-agent header, capitalize headers as others seems to do it ( fixes #2422 )
2015-10-31 15:36:08 +00:00
Audrius Butkevicius
b4bbd050c2
Merge pull request #2424 from calmh/dbinstance
...
We should pass around db.Instance instead of leveldb.DB
2015-10-31 12:51:23 +00:00
Jakob Borg
2a4fc28318
We should pass around db.Instance instead of leveldb.DB
...
We're going to need the db.Instance to keep some state, and for that to
work we need the same one passed around everywhere. Hence this moves the
leveldb-specific file opening stuff into the db package and exports the
dbInstance type.
2015-10-31 12:35:30 +01:00
Jakob Borg
313485e406
Remove file that snuck in by mistake
2015-10-31 11:38:59 +01:00
Jakob Borg
faf4267c73
Refactor: the various db key functions should be instance methods
2015-10-31 11:27:04 +01:00
Jakob Borg
e6277d799f
Undo incorrect revert of folder ID in test config
2015-10-31 11:27:04 +01:00
Jakob Borg
cdbc8004fb
Comment pedantry
2015-10-31 11:16:07 +01:00
Audrius Butkevicius
1fac2f686d
Merge pull request #2423 from calmh/urls
...
Create a correct URL is more difficult than just slapping on a scheme (fixes #2316 )
2015-10-30 20:50:32 +00:00
Jakob Borg
08c8d679ac
Create a correct URL is more difficult than just slapping on a scheme ( fixes #2316 )
2015-10-30 21:22:40 +01:00
Jakob Borg
48c34b7234
Translation update
2015-10-30 10:23:09 +01:00
Audrius Butkevicius
28603f0d2c
Merge pull request #2420 from calmh/closelog
...
Enable log rotation by automatically closing log file (fixes #2251 )
2015-10-29 15:25:51 +00:00
Jakob Borg
b2855f02fe
Enable log rotation by automatically closing log file ( fixes #2251 )
2015-10-29 16:04:07 +01:00
Audrius Butkevicius
bef3d88076
Merge pull request #2418 from calmh/fix2416
...
Rescan changed files before pulling on top of them (fixes #2416 )
2015-10-29 08:15:36 +00:00
Jakob Borg
e1a8ea7dec
Rescan changed files before pulling on top of them ( fixes #2416 )
2015-10-29 09:12:37 +01:00
Jakob Borg
c4ad97136f
Move leveldb instance and transactions into separate files
2015-10-29 08:07:51 +01:00
Audrius Butkevicius
eab1d6782b
Merge pull request #2415 from calmh/dbkeys
...
Add database and transaction instances
2015-10-28 21:50:29 +00:00
Jakob Borg
fd7b8ec77e
Neater transaction handling
2015-10-28 22:04:00 +01:00
Jakob Borg
e28c991331
Create an instance type to tie database methods to
2015-10-28 21:03:05 +01:00
Jakob Borg
a52811dfa3
Don't use godep to run tests
2015-10-28 09:22:07 +01:00
Jakob Borg
9e210d705d
The PublicKey() method is an addition in Go 1.4
2015-10-27 16:03:14 +01:00
Jakob Borg
c42f1b53ab
pulorder.go -> pullorder.go
2015-10-27 12:14:14 +01:00
Jakob Borg
d171173e90
AlwaysLocalNets should not default to null
2015-10-27 12:04:51 +01:00
Jakob Borg
679f0f9363
Fix some config Copy() things we had forgotten
2015-10-27 11:53:42 +01:00
Jakob Borg
724c1e297f
Remove handling of config versions < 10 (v0.11.0)
2015-10-27 11:46:33 +01:00
Jakob Borg
83154569b1
Refactor config types into separate files
2015-10-27 11:37:03 +01:00
Jakob Borg
e3c0fba34b
Must not call hex.Dump in non-debug mode...
2015-10-27 10:27:18 +01:00
Jakob Borg
2b6a6b91f3
Remove unused struct field
2015-10-27 09:55:05 +01:00
Audrius Butkevicius
09a555fdd2
Merge pull request #2410 from calmh/hashalloc
...
Reduce allocations in HashFile
2015-10-27 08:45:38 +00:00
Jakob Borg
dc32f7f0a3
Reduce allocations in HashFile
...
By using copyBuffer we avoid a buffer allocation for each block we hash,
and by allocating space for the hashes up front we get one large backing
array instead of a small one for each block. For a 17 MiB file this
makes quite a difference in the amount of memory allocated:
benchmark old ns/op new ns/op delta
BenchmarkHashFile-8 102045110 100459158 -1.55%
benchmark old allocs new allocs delta
BenchmarkHashFile-8 415 144 -65.30%
benchmark old bytes new bytes delta
BenchmarkHashFile-8 4504296 48104 -98.93%
2015-10-27 09:37:27 +01:00
Jakob Borg
1efd8d6c75
Add benchmark of HashFile
2015-10-27 09:30:34 +01:00
Jakob Borg
898fc72313
Fixup NICKS/authors
2015-10-27 08:38:25 +01:00
Jakob Borg
21c5806cbf
Merge pull request #2405 from acogdev/master
...
Documentation and examples for autostarting with Upstart
2015-10-27 08:37:14 +01:00
Jakob Borg
464e6bec95
Log lines in REST should have lower case keys
2015-10-27 08:22:35 +01:00
Audrius Butkevicius
2ae832d919
Fix typo introduced
2015-10-25 21:10:55 +00:00
Audrius Butkevicius
5b03c2d949
Remove dead code
2015-10-25 20:46:09 +00:00
Audrius Butkevicius
f629a998a0
Change errNoDevice message to something more human
2015-10-25 13:27:26 +00:00
Jake Peterson
fe88781bc8
Changed system conf file to use $USER
2015-10-24 14:53:08 -06:00
Audrius Butkevicius
e725c97967
Merge pull request #2406 from syncthing/fix-non-local-local-networks
...
Consider 'AlwaysLocalNets' in bandwidth limiters
2015-10-24 13:07:04 +01:00
Matt Burke
63caf22671
Consider 'AlwaysLocalNets' in bandwidth limiters
...
'AlwaysLocalNets' was getting printed, but was getting used
when setting up connections. Now, the nets that should be
considered local are printed and used.
2015-10-24 01:14:25 -04:00
Jake Peterson
44790b1333
Added Jake Peterson to AUTHORS
2015-10-23 22:49:25 -06:00
Jake Peterson
b40bb64612
Documentation and examples for Ubuntu-like linux systems using
...
Upstart as the init system.
2015-10-23 22:37:35 -06:00
Audrius Butkevicius
7b5ab29a6d
Because I am a muppet
2015-10-23 20:21:21 +01:00
Audrius Butkevicius
4fd614be09
Add a different mode to stindex
2015-10-23 20:02:38 +01:00
Audrius Butkevicius
73236e58c5
Close channel after the client is stopped
2015-10-22 23:09:02 +01:00
Jakob Borg
32414853c6
Fix Raleway font
2015-10-22 21:08:24 +02:00
Jakob Borg
f3dc78d457
Don't deadlock after checking relay client status ( fixes #2404 )
2015-10-22 20:32:15 +02:00
Jakob Borg
a32ac62208
Don't expect ending slash on Windows
2015-10-22 13:49:41 +02:00