- Apr 10, 2018
-
-
Vincent Breitmoser authored
For some reason, string interpolation on a DomainSpecificString object like "%r" % (domainSpecificStringObj) fails under PyPy, because the default __repr__ implementation wants to iterate over the object. I'm not sure why that happens, but overriding __repr__ instead of __str__ fixes this problem, and is arguably the more appropriate thing to do anyways.
-
Richard van der Hoff authored
-
Vincent Breitmoser authored
The psycopg2 package isn't available for PyPy. This commit adds a check if the runtime is PyPy, and if it is uses psycopg2cffi module in favor of psycopg2. This is almost a drop-in replacement, except for one place where an additional cast to string is required.
-
Vincent Breitmoser authored
This commit drop-in replaces blist with SortedContainers. They are written in pure python so work with pypy, but perform as good as native implementations, at least in a couple benchmarks: http://www.grantjenks.com/docs/sortedcontainers/performance.html
-
Richard van der Hoff authored
move handling of auto_join_rooms to RegisterHandler
-
- Apr 09, 2018
-
-
Richard van der Hoff authored
Add b prefixes to some strings that are bytes in py3
-
Richard van der Hoff authored
Replace old-style raise with six.reraise
-
Richard van der Hoff authored
Return 401 for invalid access_token on logout
-
Richard van der Hoff authored
use python3-compatible prints
-
Richard van der Hoff authored
Replace some type checks with six type checks
-
Richard van der Hoff authored
Improve handling of SRV records for federation connections
-
Richard van der Hoff authored
update prometheus dashboard to use new metric names
-
Richard van der Hoff authored
Return a 404 rather than a 500 on rejoining empty rooms
-
Richard van der Hoff authored
We aren't ready to release this yet, so I'm reverting it for now. This reverts commit d1679a4e, reversing changes made to e089100c.
-
Richard van der Hoff authored
Filter ourselves out of the server list before checking for an empty remote host list, to fix 500 error Fixes #2141
-
- Apr 06, 2018
-
-
Adrian Tschira authored
Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
Adrian Tschira authored
-
Adrian Tschira authored
The old style raise is invalid syntax in python3. As noted in the docs, this adds one more frame in the traceback, but I think this is acceptable: <ipython-input-7-bcc5cba3de3f> in <module>() 16 except: 17 pass ---> 18 six.reraise(*x) /usr/lib/python3.6/site-packages/six.py in reraise(tp, value, tb) 691 if value.__traceback__ is not tb: 692 raise value.with_traceback(tb) --> 693 raise value 694 finally: 695 value = None <ipython-input-7-bcc5cba3de3f> in <module>() 9 10 try: ---> 11 x() 12 except: 13 x = sys.exc_info() Also note that this uses six, which is not formally a dependency yet, but is included indirectly since most packages depend on it. Signed-off-by:
Adrian Tschira <nota@notafile.com>
-
Luke Barnard authored
Implement group join API
-
Luke Barnard authored
-
Luke Barnard authored
-
Erik Johnston authored
Add response size metrics
-
Richard van der Hoff authored
postgres port script: fix state_groups_pkey error
-
Luke Barnard authored
as opposed to join_policy, which is really only pertinent to the synapse implementation of the group server. By doing this we keep the group server concept extensible by allowing arbitrarily complex rules for deciding whether a group is openly joinable.
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
Luke Barnard authored
-
David Baker authored
-
David Baker authored
-
Richard van der Hoff authored
Improve logging and comments. Group all the stuff to do with inspecting tables together rather than creating the port tables in the middle.
-
Richard van der Hoff authored
We really shouldn't spit out "Failed to create port table", it looks scary.
-
Erik Johnston authored
-
Erik Johnston authored
use PUT instead of POST for federating groups/m.join_policy
-