summary refs log tree commit diff
path: root/synapse/api/auth.py (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-02-17ExpiringCache: purge every 1/2 intervalErik Johnston1-1/+1
2015-02-17Start the get_pdu cacheErik Johnston1-0/+1
2015-02-16Cache results of get_pdu.Erik Johnston1-3/+39
2015-02-16Factor out ExpiringCache from StateHandlerErik Johnston2-37/+124
2015-02-16Mark old events as outliers.Erik Johnston1-1/+7
This is to fix the issue where if a remote server sends an event that references a really "old" event, then the local server will pull that in and send to all clients. We decide if an event is old if its depth is less than the minimum depth of the room.
2015-02-16Don't return anything from _handle_new_pdu, since we ignore the return value ↵Erik Johnston1-4/+1
anyway
2015-02-16Fix contrib/graph/graph2.py to handle FrozenDictErik Johnston1-1/+2
2015-02-15Bump versionErik Johnston1-1/+1
2015-02-15resolve_events expect lists, not dictsErik Johnston1-1/+1
2015-02-14we federate on port 8448 nowadays...Matthew Hodgson1-1/+1
2015-02-13Bump versionErik Johnston1-1/+1
2015-02-13Update pushers by app id and pushkey, not user id and pushkeyDavid Baker2-12/+12
2015-02-13Bump version v0.7.0dErik Johnston1-1/+1
2015-02-13Fix wrong variable nameErik Johnston1-1/+1
2015-02-13Prepare the database whenever a connection is opened from the db_pool so ↵Mark Haines2-10/+7
that in-memory databases will work
2015-02-13Bump versionErik Johnston1-1/+1
2015-02-13pyflakesErik Johnston1-1/+1
2015-02-13When we see a difference in current state, actually use state conflict ↵Erik Johnston2-14/+63
resolution algorithm
2015-02-13Bump version v0.7.0bErik Johnston1-1/+1
2015-02-12Reindent code to be less human-readable to keep pep8 from complainingPaul "LeoNerd" Evans1-1/+1
2015-02-12Only attempt to fetch presence state of JOINed members in room initialSync ↵Paul "LeoNerd" Evans1-0/+1
(SYN-202)
2015-02-12Fix loggingErik Johnston1-1/+4
2015-02-12Remove unused functionErik Johnston1-12/+0
2015-02-12Reindent code to be less human-readable to keep pep8 from complainingPaul "LeoNerd" Evans1-1/+1
2015-02-12Appease pyflakesPaul "LeoNerd" Evans1-1/+1
2015-02-12Can now remove the FIXME tooPaul "LeoNerd" Evans1-10/+3
2015-02-12Only attempt to fetch presence state of JOINed members in room initialSync ↵Paul "LeoNerd" Evans1-0/+1
(SYN-202)
2015-02-12Parrellize fetching of eventsErik Johnston1-3/+11
2015-02-12Correctly handle all the places that can throw exceptionsErik Johnston4-15/+37
2015-02-12Bump versionErik Johnston1-1/+1
2015-02-12Get an auth query one at a timeErik Johnston1-7/+6
2015-02-12Expand on cachingErik Johnston1-1/+7
2015-02-12Add note about alpha csv2 apisErik Johnston1-2/+3
2015-02-12TypoesErik Johnston1-2/+2
2015-02-12Add note about push supportErik Johnston1-0/+1
2015-02-12Bump webclient versionErik Johnston1-3/+3
2015-02-12Use consistent style of headingErik Johnston1-2/+2
2015-02-12Change develop to v0.7.0Erik Johnston1-2/+2
2015-02-12More rst fixes. Expand on JSON library changeErik Johnston1-2/+4
2015-02-12Fix rst formattingErik Johnston1-36/+36
2015-02-12Update CHANGES.rstErik Johnston1-3/+10
2015-02-12Fix rstErik Johnston1-4/+4
2015-02-12Update UPGRADES to mention updated dependenciesErik Johnston1-0/+14
2015-02-12Set database schema version in deltaErik Johnston1-0/+2
2015-02-12Bump versionErik Johnston1-1/+1
2015-02-11Convert get_rooms to use runInteraction so the transacion has a more helpful ↵Erik Johnston1-30/+37
description
2015-02-11Use encode_canonical_json for http clientErik Johnston1-1/+3
2015-02-11Use encode_canonical_json for pushesErik Johnston1-1/+3
2015-02-11Update dependency linksErik Johnston1-2/+2
2015-02-11Bump syutil versionErik Johnston1-1/+1
2015-02-11Allow newer versions of syutilMark Haines1-1/+1
2015-02-11pyflakesErik Johnston2-2/+1
2015-02-11Remove more debug loggingErik Johnston1-2/+0
2015-02-11Remove debug loggingErik Johnston2-12/+0
2015-02-11Fix so timing out connections to actually work.Erik Johnston2-9/+45
2015-02-11Fix tests which broke when event caching was introduced.Kegan Dougal1-1/+4
2015-02-11Minor tweaks based on PR feedback.Kegan Dougal2-4/+5
2015-02-11Added another TODO notePaul "LeoNerd" Evans1-0/+3
2015-02-11Cache the result of a get_rooms_for_user query, to make ↵Paul "LeoNerd" Evans1-7/+34
user_rooms_intersect() much lighter in the read-common case
2015-02-11First step of making user_rooms_intersect() faster - implement in ↵Paul "LeoNerd" Evans1-18/+20
intersection logic in Python code terms of a DB query that is cacheable per user
2015-02-11Don't unfreeze when using FreezeEvent.get_dict, as we are using a ↵Erik Johnston6-13/+36
JSONEncoder that understands FrozenDict
2015-02-11Invalidate the cache for an event if it is redactedMark Haines1-0/+2
2015-02-11Fix formattingMark Haines1-2/+0
2015-02-11Add a cache for get_eventMark Haines6-5/+43
2015-02-11Add a lru cache classMark Haines2-0/+166
2015-02-11Blunty replace json with simplejsonErik Johnston21-21/+21
2015-02-11Mention new libs in CHANGESErik Johnston1-0/+2
2015-02-11Factor out some of the common homeserver setup code into aMark Haines25-360/+140
setup_test_homeserver function in utils.
2015-02-11Fix newline on __init__Kegan Dougal1-1/+0
2015-02-11PEP8-ifyKegan Dougal4-9/+1
2015-02-11Add newline to EOFKegan Dougal1-0/+1
2015-02-11Notify ASes for events sent by other users in a room which an AS user is a ↵Kegan Dougal4-11/+56
part of.
2015-02-11Fix bug where variable was not always definedErik Johnston1-2/+1
2015-02-11PEP8Erik Johnston1-1/+0
2015-02-11Move time_bound_deferred into ClockErik Johnston3-24/+22
2015-02-10Rename path to path_segments to make it clearer that it is a listMark Haines1-4/+4
2015-02-10Time out HTTP federation requestsErik Johnston2-2/+29
2015-02-10Fix code-styleMark Haines7-12/+12
2015-02-10Add the 'setup_requires' and allow easy_install since jenkins uses themMark Haines1-14/+5
2015-02-10Single source version and python dependencies, prevent people accidentally ↵Mark Haines3-44/+43
installing with easy_install, use scripts rather than entry_points to install synctl
2015-02-10Log all the exits from _attempt_new_transactionErik Johnston1-2/+7
2015-02-10Bump versionErik Johnston2-2/+2
2015-02-10Fix prune_events to work with nested dictsErik Johnston1-2/+4
2015-02-10Code-style fixesMark Haines11-36/+57
2015-02-10Sign auth_chains when returned by /state/ requestsErik Johnston1-0/+11
2015-02-10Remove unnecessary loggingErik Johnston1-6/+1
2015-02-10Fix pyflakesMark Haines1-3/+3
2015-02-10Add performance counters for different stages of loading eventsMark Haines1-24/+60
2015-02-10yaml.load expects strings to be a yaml rather than fileErik Johnston1-1/+2
2015-02-10Use yaml logging config format because it is much nicerErik Johnston1-1/+2
2015-02-10Oops, we do want to defer.return regardless of whether we are caching or notErik Johnston1-1/+1
2015-02-10Move construction of object within if blockErik Johnston1-6/+6
2015-02-09Convert directory paths to absolute paths before daemonizingMark Haines1-2/+3
2015-02-09Use the transaction 'desc' rather than 'name', increment the txn_ids inMark Haines1-3/+3
txn names
2015-02-09FormattingMark Haines1-1/+0
2015-02-09Performance counters for database transaction namesMark Haines1-1/+31
2015-02-09During room intial sync, only calculate current state once.Erik Johnston4-21/+43
2015-02-09Need to use re.search if looking for matches not at the start of the string. ↵David Baker1-3/+3
Also comparisons with None should be 'is'.
2015-02-09oopsMatthew Hodgson1-1/+1
2015-02-09oopsMatthew Hodgson1-1/+1
2015-02-09only do word-boundary patches on bodies for nowMatthew Hodgson2-2/+5
2015-02-09Fix bugs so lazy room joining works as intended.Kegan Dougal3-12/+23
2015-02-09Fix typoErik Johnston1-1/+1
2015-02-09Add looping_call to ClockErik Johnston1-1/+9
2015-02-09Log database time every 10s and log as percentageErik Johnston1-2/+2
2015-02-09Fix testsErik Johnston1-1/+6
2015-02-09Time how long we're spending on the database threadErik Johnston2-0/+27
2015-02-09Fix server default rule injection (downwards, not upwards!)David Baker1-6/+6
2015-02-09Remove unused imports.Kegan Dougal1-2/+2
2015-02-09Modify auth.get_user_by_req for authing appservices directly.Kegan Dougal5-20/+164
Add logic to map the appservice token to the autogenned appservice user ID. Add unit tests for all forms of get_user_by_req (user/appservice, valid/bad/missing tokens)
2015-02-09Log when we receive a request, when we send a response and how long it took ↵Erik Johnston4-5/+24
to process it.
2015-02-09Register a user account for the AS when the AS registers. Add 'sender' ↵Kegan Dougal5-4/+14
column to AS table.
2015-02-08glob *s should probably be non-greedyMatthew Hodgson1-1/+1
2015-02-08oopsMatthew Hodgson1-1/+1
2015-02-08kill off fnmatch in favour of word-boundary based push alerts (untested)Matthew Hodgson1-12/+20
2015-02-07don't give up if we can't create default avatars during testsMatthew Hodgson1-9/+12
2015-02-07add some options and docMatthew Hodgson1-5/+20
2015-02-07clean up TurnedToDust's ArchLinux notes a bitMatthew Hodgson1-18/+26
2015-02-07...and here's the actual impl. git fail.Matthew Hodgson2-25/+46