aboutsummaryrefslogtreecommitdiff
path: root/src/xmpp_stream_in.erl (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Move XMPP stream and SASL processing to xmpp repoEvgeniy Khramtsov2018-07-061-1220/+0
|
* Move move randoms module to p1_utils repoEvgeniy Khramtsov2018-07-051-1/+1
|
* Move shaper to p1_utils repoEvgeniy Khramtsov2018-07-051-1/+1
|
* Use error formatting functions from xmpp libraryEvgeniy Khramtsov2018-06-251-18/+4
|
* Don't call Mod:function() in xmpp_stream callbacksEvgeniy Khramtsov2018-05-261-104/+136
| | | | | | If a callback function is not defined by the `Mod` then a call to code_server process is performed. Under heavy load this may cause code_server to get overloaded. We now avoid this.
* xmpp_stream_in: Run auth result callbacks earlierHolger Weiss2018-02-261-11/+17
| | | | | | Call Mod:handle_auth_success/4 and Mod:handle_auth_failure/4 before sending the SASL response rather than afterwards. This way, callbacks can send a custom response and disconnect.
* Introduce option 'validate_stream'Evgeniy Khramtsov2018-02-091-2/+3
| | | | | | | | | | | | If set to `true`, all incoming XML packets are fully validated against known schemas. If an error occurs, the packet will be bounced with the corresponding error reason. The default value is `false`. The option might be useful to protect client software from sofisticated bugs related to XML validation as well as for client developers who want to catch validation errors at early stage of development. Note that the option might have slight performance impact, so use it with care on loaded machines.
* Improve logging of idle s2s connectionsEvgeniy Khramtsov2018-01-281-2/+3
|
* Reduce log level for unexpected XML inputHolger Weiss2018-01-241-2/+2
| | | | | Log a warning rather than an error when, for example, a client sends a stanza before opening the stream.
* Update copyright datesEvgeniy Khramtsov2018-01-051-1/+1
|
* Get rid of ejabberd receiverEvgeniy Khramtsov2017-12-261-25/+40
| | | | | | | | | | | | ejabberd receivers were meant to serve connections from frontends to backends. However, this approach was not popular and frontend related code was removed in previous releases. Now, ejabberd receiver's code was also removed, making the code shorter and cleaner. Also, in stress tests ejabberd now handles load more robustly, without c2s processes overload (even with disabled shapers). ejabberd_socket.erl is renamed to xmpp_socket.erl: it's supposed to be finally moved into stand-alone xmpp library.
* Fix processing orderEvgeniy Khramtsov2017-12-171-14/+14
|
* Only allow compression after SASLEvgeniy Khramtsov2017-12-131-4/+6
| | | | | See XEP-0170 for details Thanks to Vitaly Takmazov for spotting this
* Better process subtag decoding errorsEvgeniy Khramtsov2017-12-091-2/+7
|
* Don't crash on unexpected XML eventsEvgeniy Khramtsov2017-11-241-0/+10
| | | | | In fact, seems like this is a problem in the receiver code (or fast_xml?) and should be fixed there
* Reflect changes in the xmpp libEvgeniy Khramtsov2017-10-131-5/+5
|
* Fix a typoEvgeniy Khramtsov2017-08-251-1/+1
|
* Fix closing of outbound S2S connectionsEvgeniy Khramtsov2017-04-151-16/+15
|
* Improve ejabberd_c2s:close()Evgeniy Khramtsov2017-04-151-20/+15
|
* Make sure stream trailer is sent in the very endEvgeniy Khramtsov2017-04-141-6/+7
|
* Fix c2s connection close on demandEvgeniy Khramtsov2017-04-041-0/+10
| | | | Fixes #1652
* Get rid of p1_sha callsAlexey Shchepin2017-03-141-1/+1
|
* Return 'closed' instead of 'einval' on closed socketsEvgeniy Khramtsov2017-03-121-0/+2
|
* External components must always provide 'to' attributeEvgeniy Khramtsov2017-03-011-2/+2
|
* Add s2s work-around for gmail.comEvgeniy Khramtsov2017-02-281-3/+10
|
* Don't perform useless resourceprepEvgeniy Khramtsov2017-02-271-17/+9
|
* Let ejabberd_c2s handle <session/> IQHolger Weiss2017-02-191-12/+1
| | | | This fixes the counting of incoming stanzas for stream management.
* Fix some dialyzer warningsEvgeniy Khramtsov2017-02-181-2/+2
|
* Use p1_server behaviour in xmpp_stream layerEvgeniy Khramtsov2017-02-081-1/+1
|
* Make test suite working againEvgeniy Khramtsov2017-01-231-2/+2
|
* Send <compressed/> in correct orderEvgeniy Khramtsov2017-01-211-11/+11
|
* Update copyright headers in new filesEvgeniy Khramtsov2017-01-201-1/+1
|
* Fix reporting dialback failuresEvgeniy Khramtsov2017-01-181-2/+2
|
* Reset XML stream before sending SASL <success/>Evgeniy Khramtsov2017-01-171-1/+1
|
* Fix some corner cases while re-reading RFC6120Evgeniy Khramtsov2017-01-131-12/+9
|
* Adopt remaining code to support new hooksEvgeniy Khramtsov2017-01-091-139/+194
|
* Reflect cyrsasl API changes in remaining codeEvgeniy Khramtsov2016-12-311-60/+94
|
* More refactoring on session managementEvgeniy Khramtsov2016-12-301-82/+82
|
* Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov2016-12-281-266/+577
|
* Rewrite ejabberd_service to use new XMPP stream APIEvgeniy Khramtsov2016-12-111-16/+88
|
* Initial version of new XMPP stream behaviour (for review)Evgeniy Khramtsov2016-12-111-0/+698