summary refs log tree commit diff
path: root/synapse/http (follow)
Commit message (Expand)AuthorAgeFilesLines
...
| | * | Replace some more comparisons with sixAdrian Tschira2018-05-191-3/+5
| | |/
* | | fixesAmber Brown2018-05-231-7/+7
* | | cleanupAmber Brown2018-05-222-3/+6
* | | cleanup pep8 errorsAmber Brown2018-05-221-28/+86
* | | cleanups, self-registrationAmber Brown2018-05-221-12/+3
* | | Merge remote-tracking branch 'origin/develop' into 3218-official-promAmber Brown2018-05-223-4/+213
|\| |
| * | Don't store contextErik Johnston2018-05-221-8/+5
| * | Move in_flight_requests_count to be a callback metricErik Johnston2018-05-221-10/+21
| * | Add in flight request metricsErik Johnston2018-05-212-2/+154
| |/
| * Merge pull request #3213 from matrix-org/rav/consent_handlerRichard van der Hoff2018-05-161-2/+74
| |\
| | * ConsentResource to gather policy consent from usersRichard van der Hoff2018-05-151-2/+74
* | | rest of the changesAmber Brown2018-05-212-85/+25
* | | replacing portionsAmber Brown2018-05-212-24/+10
|/ /
* / Set Server header in SynapseRequestRichard van der Hoff2018-05-103-13/+15
|/
* Remove redundant request_handler decoratorRichard van der Hoff2018-05-102-9/+4
* Factor wrap_request_handler_with_logging out of wrap_request_handlerRichard van der Hoff2018-05-101-54/+66
* Remove include_metrics paramRichard van der Hoff2018-05-101-17/+7
* Move outgoing_responses_counter handling to RequestMetricsRichard van der Hoff2018-05-102-4/+2
* Bump requests_counter in wrapped_request_handlerRichard van der Hoff2018-05-101-4/+11
* Move RequestMetrics handling into SynapseRequest.processing()Richard van der Hoff2018-05-102-24/+64
* Make RequestMetrics take a raw time rather than a clockRichard van der Hoff2018-05-102-6/+6
* Move request_id management into SynapseRequestRichard van der Hoff2018-05-102-15/+25
* Move RequestsMetrics to its own fileRichard van der Hoff2018-05-092-124/+151
* Merge pull request #3182 from Half-Shot/hs/fix-twisted-shutdownRichard van der Hoff2018-05-031-3/+8
|\
| * Don't abortConnection() if the transport connection has already closed.Will Hunt2018-05-031-3/+8
* | add missing param to cancelled_to_request_timed_out_errorRichard van der Hoff2018-05-021-1/+1
* | Merge pull request #3154 from NotAFile/py3-stringioRichard van der Hoff2018-04-301-2/+2
|\ \
| * | replace stringIO importsAdrian Tschira2018-04-281-2/+2
* | | Merge pull request #3155 from NotAFile/py3-bytes-1Richard van der Hoff2018-04-302-2/+2
|\ \ \
| * | | more bytes stringsAdrian Tschira2018-04-292-2/+2
| |/ /
* | | Merge pull request #3108 from NotAFile/py3-six-urlparseRichard van der Hoff2018-04-301-2/+1
|\ \ \ | |/ / |/| |
| * | Use six.moves.urlparseAdrian Tschira2018-04-151-2/+1
* | | Backport deferred.addTimeoutRichard van der Hoff2018-04-273-6/+9
* | | Use deferred.addTimeout instead of time_bound_deferredRichard van der Hoff2018-04-233-29/+48
|/ /
* | Merge pull request #3061 from NotAFile/add-some-byte-stringsRichard van der Hoff2018-04-092-5/+5
|\ \
| * | Add b prefixes to some strings that are bytes in py3Adrian Tschira2018-04-042-5/+5
* | | Merge pull request #3016 from silkeh/improve-service-lookupsRichard van der Hoff2018-04-091-95/+8
|\ \ \
| * | | Remove address resolution of hosts in SRV recordsSilke2018-04-041-95/+8
| |/ /
* | | Revert "Merge pull request #3066 from matrix-org/rav/remove_redundant_metrics"Richard van der Hoff2018-04-091-0/+26
* | | Add response size metricsErik Johnston2018-04-061-0/+7
* | | use PUT instead of POST for federating groups/m.join_policyKrombel2018-04-061-1/+5
* | | Remove redundant metrics which were deprecated in 0.27.0.Richard van der Hoff2018-04-041-26/+0
|/ /
* | Add Cache-Control headers to all JSON APIsErik Johnston2018-03-211-0/+1
* | Merge branch 'master' of github.com:matrix-org/synapse into developErik Johnston2018-03-191-2/+0
|\ \
| * | Replace ujson with simplejsonErik Johnston2018-03-151-3/+2
* | | Replace some ujson with simplejson to make it workErik Johnston2018-03-161-1/+2
* | | Add some docstrings to help figure this outRichard van der Hoff2018-03-091-2/+26
* | | Add a metric which increments when a request is receivedRichard van der Hoff2018-03-091-2/+10
* | | refactor JsonResourceRichard van der Hoff2018-03-091-32/+46
* | | Merge pull request #2858 from matrix-org/rav/purge_updatesRichard van der Hoff2018-02-091-3/+15
|\ \ \
| * | | delete_local_events for purge_historyRichard van der Hoff2018-02-091-3/+15
* | | | Merge pull request #2838 from matrix-org/rav/fix_logging_on_dns_failRichard van der Hoff2018-01-311-2/+1
|\ \ \ \
| * | | | Remove spurious log argumentRichard van der Hoff2018-01-301-2/+1
* | | | | Merge pull request #2817 from matrix-org/rav/http_conn_poolRichard van der Hoff2018-01-311-1/+13
|\ \ \ \ \ | |/ / / / |/| | | |
| * | | | Increase http conn pool sizeRichard van der Hoff2018-01-291-1/+6
| |/ / /
| * | | Use a connection pool for the SimpleHttpClientRichard van der Hoff2018-01-201-1/+8
* | | | Add federation_domain_whitelist option (#2820)Matthew Hodgson2018-01-221-1/+27
|/ / /
* | | Merge remote-tracking branch 'origin/develop' into rav/track_db_schedulingRichard van der Hoff2018-01-171-9/+9
|\ \ \
| * \ \ Merge pull request #2793 from matrix-org/rav/db_txn_time_in_millisRichard van der Hoff2018-01-172-4/+6
| |\ \ \
| * | | | Fix 'NoneType' object has no attribute 'writeHeaders'Richard van der Hoff2018-01-161-9/+9
* | | | | Track DB scheduling delay per-requestRichard van der Hoff2018-01-162-1/+10
| |/ / / |/| | |
* | | | Track db txn time in millisecsRichard van der Hoff2018-01-162-4/+6
|/ / /
* | | Reorganise request and block metricsRichard van der Hoff2018-01-151-14/+42
* | | Update http request metrics before calling servletRichard van der Hoff2018-01-091-11/+19
|/ /
* | Merge pull request #2711 from matrix-org/rav/fix_dns_errhandlerRichard van der Hoff2017-11-271-2/+4
|\ \
| * | Fix error handling on dns lookupRichard van der Hoff2017-11-241-2/+4
* | | Improve tracebacks on exceptionsRichard van der Hoff2017-11-271-3/+9
|/ /
* | Fix 500 on invalid utf-8 in requestRichard van der Hoff2017-11-101-1/+2
* | Add a hook for custom rest endpointsRichard van der Hoff2017-11-021-0/+55
* | Merge pull request #2586 from matrix-org/rav/frontend_proxy_auth_headerRichard van der Hoff2017-10-271-28/+80
|\ \
| * | Docstring for post_urlencoded_get_jsonRichard van der Hoff2017-10-271-0/+11
| * | SimpleHTTPClient: add support for headersRichard van der Hoff2017-10-261-28/+69
* | | Fix logcontext leaks in httpclientRichard van der Hoff2017-10-261-10/+9
|/ /
* | replace 'except:' with 'except Exception:'Richard van der Hoff2017-10-234-6/+6
* | Merge branch 'develop' into erikj/groups_mergedDavid Baker2017-10-022-27/+114
|\ \
| * | Improve logging of failures in matrixfederationclientRichard van der Hoff2017-09-281-7/+6
| * | Handle SERVFAILs when doing AAAA lookups for federation (#2477)Richard van der Hoff2017-09-281-5/+17
| * | Do an AAAA lookup on SRV record targets (#2462)Richard van der Hoff2017-09-221-20/+96
* | | Add DELETEErik Johnston2017-07-181-0/+46
* | | Add 'args' param to post_jsonErik Johnston2017-07-181-9/+15
* | | Initial group server implementationErik Johnston2017-07-101-1/+3
|/ /
* | allow Authorization header which handling got implemented in #1098Krombel2017-06-161-1/+1
* | Remember how twisted worksKegan Dougal2017-05-051-2/+2
* | Include the clockKegan Dougal2017-05-051-0/+1
* | Rewrite SimpleHttpClient.request to include timeoutsKegan Dougal2017-05-051-13/+19
* | No need for the exception variableDavid Baker2017-05-031-1/+1
* | List caught expection typesDavid Baker2017-05-031-1/+1
* | Remove debuggingDavid Baker2017-04-261-2/+1
* | Merge remote-tracking branch 'origin/develop' into dbkr/http_request_propagat...David Baker2017-04-261-7/+14
|\ \
| * | Fix some lies, and other clarifications, in docstringsRichard van der Hoff2017-04-211-7/+14
* | | Fix get_jsonDavid Baker2017-04-261-5/+4
* | | Use CodeMessageException subclass insteadDavid Baker2017-04-251-44/+20
* | | Need the HTTP status codeDavid Baker2017-04-211-5/+5
* | | Do the same for get_jsonDavid Baker2017-04-211-8/+21
* | | Don't error for 3xx responsesDavid Baker2017-04-211-1/+1
* | | Propagate errors sensibly from proxied IS requestsDavid Baker2017-04-211-0/+30
|/ /
* | try not to drop context after federation requestsRichard van der Hoff2017-03-231-12/+16
* | Ignore backoff history for invites, aliases, and roomdirsRichard van der Hoff2017-03-231-7/+26
* | push federation retry limiter down to matrixfederationclientRichard van der Hoff2017-03-231-101/+127
* | MatrixFederationHttpClient: clean upRichard van der Hoff2017-03-231-17/+24
* | Merge pull request #1994 from matrix-org/dbkr/msisdn_signin_2Erik Johnston2017-03-151-0/+10
|\ \
| * | Support registration / login with phone numberDavid Baker2017-03-131-0/+10
* | | Fix routing loop when fetching remote mediaRichard van der Hoff2017-03-131-3/+12
|/ /
* | Revert "Support registration & login with phone number"Erik Johnston2017-03-131-10/+0
* | Refector out assert_params_in_requestDavid Baker2017-03-081-0/+10
|/
* Merge branch 'release-v0.18.6' into developMark Haines2016-12-292-7/+70
|\
| * Manually abort the underlying TLS connection.Mark Haines2016-12-291-2/+10
| * Respect long_retries param and default to offErik Johnston2016-12-291-2/+2
| * Spelling and commentsErik Johnston2016-12-291-4/+6
| * Clean upErik Johnston2016-12-292-7/+4
| * Wrap connections in an N minute timeout to ensure they get reaped correctlyErik Johnston2016-12-292-5/+61
* | Merge pull request #1696 from kyrias/ipv6Matthew Hodgson2016-12-192-23/+22
|\ \ | |/ |/|
| * Remove spurious newlineJohannes Löthberg2016-12-121-1/+0
| * Fixup for #1689 and #1690Johannes Löthberg2016-12-122-8/+13
| * IPv6 support for endpoint.pyGlyph2016-12-111-4/+4
| * IPv6 support for client.pyGlyph2016-12-111-16/+11
* | Add new API appservice specific public room listErik Johnston2016-12-061-2/+6
|/
* More intelligent Content-Type parsingRichard van der Hoff2016-11-301-18/+30
* Set CORs headers on responses from the media repoMark Haines2016-11-021-5/+18
* Pass since/from parameters over federationErik Johnston2016-09-151-4/+14
* Add a timeout parameter for end2end key queries.Mark Haines2016-09-121-2/+9
* Add exception logging. Fix typoErik Johnston2016-08-221-3/+3
* Allow request handlers to override metric nameErik Johnston2016-08-221-21/+31
* Use top level measureErik Johnston2016-08-221-15/+1
* Add a top level measureErik Johnston2016-08-191-45/+46
* Remove redundant measureErik Johnston2016-08-191-35/+34
* Measure http.server renderErik Johnston2016-08-191-28/+30
* Clean up TransactionQueueErik Johnston2016-08-101-3/+1
* Log when adding listenersRichard van der Hoff2016-07-251-0/+1
* Work around TLS bug in twistedRichard van der Hoff2016-06-151-2/+26
* Clean up the blacklist/whitelist handling.Mark Haines2016-05-161-2/+1
* add a url_preview_ip_range_whitelist config param so we can whitelist the mat...Matthew Hodgson2016-05-012-7/+13
* Fix more typos in per-request metricsMark Haines2016-04-281-4/+5
* Fix typo in request metricsMark Haines2016-04-281-1/+1
* Add a comment explaining why automatic metric reporting is disabled for JsonR...Mark Haines2016-04-281-0/+4
* Check if report_metrics is TrueMark Haines2016-04-281-3/+4
* Report per request metrics for all of the things using request_handlerMark Haines2016-04-281-38/+63
* Move SynapseSite to its own fileMark Haines2016-04-221-0/+146
* Make InsecureInterceptableContextFactory work with SpiderEndpointErik Johnston2016-04-191-1/+4
* Merge pull request #688 from matrix-org/matthew/preview_urlsMatthew Hodgson2016-04-112-5/+197
|\
| * actually throw meaningful errorsMatthew Hodgson2016-04-081-5/+16
| * Add url_preview_enabled config option to turn on/off preview_url endpoint. de...Matthew Hodgson2016-04-082-7/+72
| * Merge branch 'develop' into matthew/preview_urlsMatthew Hodgson2016-04-041-30/+51
| |\
| * | pep8Matthew Hodgson2016-04-031-4/+10
| * | add a persistent cache of URL lookups, and fix up the in-memory one to workMatthew Hodgson2016-04-031-3/+3
| * | support gzip compression, and don't pass through error msgsMatthew Hodgson2016-04-021-3/+8
| * | handle spidered relative images correctlyMatthew Hodgson2016-03-311-1/+1
| * | sync in changes from matrixfederationclientMatthew Hodgson2016-03-311-2/+6
| * | handle requests with missing content-length headers (e.g. YouTube)Matthew Hodgson2016-03-311-7/+26
| * | implement redirectsMatthew Hodgson2016-03-291-3/+3
| * | make it workMatthew Hodgson2016-03-291-1/+2
| * | make it buildMatthew Hodgson2016-03-291-1/+1
| * | Merge branch 'develop' into matthew/preview_urlsMatthew Hodgson2016-03-291-4/+6
| |\ \
| * \ \ Merge branch 'develop' into matthew/preview_urlsMatthew Hodgson2016-03-274-27/+159
| |\ \ \
| * | | | initial WIP of a tentative preview_url endpoint - incomplete, untested, exper...Matthew Hodgson2016-01-241-0/+81
* | | | | Merge branch 'develop' of github.com:matrix-org/synapse into erikj/dns_cacheErik Johnston2016-04-071-30/+51
|\ \ \ \ \ | | |_|_|/ | |/| | |
| * | | | Use google style doc strings.Mark Haines2016-04-011-30/+51
| | |_|/ | |/| |
* | | | Allow clock to be passed in to funcErik Johnston2016-03-311-3/+3
* | | | Read from DNS cache if within TTLErik Johnston2016-03-311-16/+23
|/ / /
* | / Intern all the thingsErik Johnston2016-03-231-4/+6
| |/ |/|
* | Fix regression where synapse checked whether push rules were valid JSON befor...Mark Haines2016-03-141-4/+17
* | Use parse_json_object_from_request to parse JSON out of request bodiesMark Haines2016-03-111-5/+12
* | Add a parse_json_object functionMark Haines2016-03-091-5/+65
* | pep8David Baker2016-03-081-2/+5
* | Encode unicode objects given to post_urlencode* otherwise urllib.urlencode ch...David Baker2016-03-081-2/+12
* | Catch the exceptions thrown by twisted when you write to a closed connectionMark Haines2016-02-121-1/+20
* | Fix up logcontextsErik Johnston2016-02-081-3/+2
* | Add metrics to pushersErik Johnston2016-02-081-0/+10
* | Allowing tagging log contextsErik Johnston2016-02-031-15/+26
* | Fix flake8 warnings for new flake8Daniel Wagner-Hall2016-02-021-1/+1
|/
* Fix AttributeErrorErik Johnston2016-01-211-1/+1
* Cache dns lookups, and use the cache if we fail to lookup servers laterErik Johnston2016-01-201-30/+71
* copyrightsMatthew Hodgson2016-01-076-6/+6
* Fix typoDaniel Wagner-Hall2015-12-161-1/+1
* Include errcode on Internal Server ErrorDaniel Wagner-Hall2015-12-141-2/+5
* Track the time spent in the database per request.Mark Haines2015-12-071-0/+15
* Add metrics to track the cpu on the main thread consumed by each type of requestMark Haines2015-12-041-0/+17
* Host /unstable and /r0 versions of r0 APIsDaniel Wagner-Hall2015-12-012-10/+11
* Fix typoErik Johnston2015-11-201-2/+2
* Don't limit connections to perspective serversErik Johnston2015-11-201-1/+4
* Use min and not max to set an upper bound on retry intervalErik Johnston2015-11-201-2/+2
* Add commentErik Johnston2015-11-171-0/+2
* Only retry federation requests for a long time for background requestsErik Johnston2015-11-171-7/+19
* Implement required method 'resumeProducing'Erik Johnston2015-11-171-0/+3
* Slightly more aggressive retry timers at HTTP levelErik Johnston2015-11-171-2/+3
* Retry dead servers a lot less oftenErik Johnston2015-11-021-2/+8
* Verify third party ID server certificatesDaniel Wagner-Hall2015-10-161-4/+0
* Fix previous merge to s/version_string/user_agent/Erik Johnston2015-10-101-2/+2
* Add get_raw method to SimpleHttpClient, use this in CAS auth rather than requ...Steven Hammerton2015-10-101-19/+36
* Use space not dash as delimiterDaniel Wagner-Hall2015-10-061-1/+1
* Use space not dash as delimiterDaniel Wagner-Hall2015-10-061-1/+1
* Preserve version string in user agentDaniel Wagner-Hall2015-10-051-3/+3
* Allow synapse's useragent to be customizedDaniel Wagner-Hall2015-10-021-6/+9
* Rename context factoryDaniel Wagner-Hall2015-09-151-3/+3
* Fix random formattingDaniel Wagner-Hall2015-09-091-1/+2
* Allow configuration to ignore invalid SSL certsDaniel Wagner-Hall2015-09-092-4/+25
* Remove syutil dependency in favour of smaller single-purpose librariesMark Haines2015-08-243-9/+10
* PEP8Erik Johnston2015-08-131-1/+0
* Merge branch 'develop' into markjh/twisted-15Mark Haines2015-08-123-123/+130
|\
| * Don't 500 if a group is missing from the regexMark Haines2015-07-061-1/+1
| * Fix log context when sending requestsErik Johnston2015-06-192-33/+35
| * Remove stale debug linesErik Johnston2015-06-191-10/+0
| * Add IDs to outbound transactionsErik Johnston2015-06-191-53/+71
| * Disable twisted access logging. Move access logging to SynapseRequest objectErik Johnston2015-06-151-58/+32
| * Log more when we have processed the requestErik Johnston2015-06-151-2/+12
| * Create SynapseRequest that overrides __repr__ to not print access_tokenErik Johnston2015-06-151-11/+3
| * Make http.server request logging more verbose, but redact access_tokensErik Johnston2015-06-151-2/+12
| * Log requests and responses sent via http.clientErik Johnston2015-06-151-3/+15
* | Merge branch 'develop' into markjh/twisted-15Mark Haines2015-06-011-4/+12
|\|
| * Remove log lineErik Johnston2015-05-291-1/+0
| * Add config option to turn off freezing events. Use new encode_json api and uj...Erik Johnston2015-05-291-4/+13
* | Use Twisted-15.2.1, Use Agent.usingEndpointFactory rather than implement our ...Mark Haines2015-06-011-50/+25
|/
* Correctly pass connection pool parameterErik Johnston2015-05-282-2/+2
* Up maxPersistentPerHost countErik Johnston2015-05-282-0/+2
* Add connection pooling to SimpleHttpClientErik Johnston2015-05-281-2/+4
* Use connection pool for federation connectionsErik Johnston2015-05-281-2/+3
* Add doc stringsErik Johnston2015-05-221-0/+3
* Add a timeout param to get_eventErik Johnston2015-05-191-5/+8
* Fix up leak. Add warnings.Erik Johnston2015-05-081-2/+4
* Change the way we do logging contexts so that they survive divergencesErik Johnston2015-05-082-17/+21
* Unused importDavid Baker2015-04-301-1/+1
* Doesn't look like this is used anymoreDavid Baker2015-04-301-13/+0
* Merge branch 'develop' into csauthDavid Baker2015-04-242-152/+179
|\
| * Combine the request wrappers in rest/media/v1 and http/server into a single w...Mark Haines2015-04-212-58/+67
| * Split out the JsonResource request logging and error handling into a separate...Mark Haines2015-04-211-94/+113
* | Merge branch 'develop' into csauthDavid Baker2015-04-171-93/+0
|\|
| * Move server key api into rest/key/v1Mark Haines2015-04-141-93/+0
* | Explain how I justified to myself making JsonResource not always send JSON.David Baker2015-04-011-0/+7
* | Completely replace fallback auth for C/S V2:David Baker2015-04-011-2/+5
* | Make docs a bit more trueDavid Baker2015-03-311-1/+1
* | Grammar and deduplicationDavid Baker2015-03-311-5/+4
* | New registration for C/S API v2. Only ReCAPTCHA working currently.David Baker2015-03-301-0/+2
|/
* Merge pull request #109 from matrix-org/default_registrationErik Johnston2015-03-181-2/+2
|\
| * Add missing commasErik Johnston2015-03-131-2/+2
* | Add a DistributionMetric to HTTP request/response processing time in the serverPaul "LeoNerd" Evans2015-03-161-0/+9
* | actually uphold the bind_host parameter. in theory should make ipv6 binds wor...Matthew Hodgson2015-03-141-1/+6
* | Appease pep8Paul "LeoNerd" Evans2015-03-123-9/+19
* | Count incoming HTTP requests per servlet that respondsPaul "LeoNerd" Evans2015-03-121-7/+11
* | Use _ instead of . as a metric namespacing separator, for PrometheusPaul "LeoNerd" Evans2015-03-123-6/+6
* | Rename Metrics' "keys" to "labels"Paul "LeoNerd" Evans2015-03-123-6/+6
* | Add vector counters to HTTP clients and servers; count the requests by method...Paul "LeoNerd" Evans2015-03-123-4/+61
* | Pull out all uses of the underlying HTTP user agent .request() method into a ...Paul "LeoNerd" Evans2015-03-121-5/+10
|/
* Slightly reduce the insane amounts of indentation in main http server respons...Paul "LeoNerd" Evans2015-03-051-21/+23
* Fix bug which prevented the HS pushing events to the AS due to FrozenEventsKegan Dougal2015-03-021-1/+1
* Merge branch 'develop' of github.com:matrix-org/synapse into release-v0.7.1Erik Johnston2015-02-185-35/+30
|\
| * Make /keys/ return correct Server versionErik Johnston2015-02-181-1/+5
| * Use git aware version string in User-Agent and Server headersErik Johnston2015-02-184-34/+25
* | Don't convert DNSLookupError to a 4xx SynapseErrorErik Johnston2015-02-181-1/+1
|/
* Add .__name__ after type(e)Erik Johnston2015-02-181-2/+2
* Fix up ResponseNeverReceived to strErik Johnston2015-02-181-9/+11