aboutsummaryrefslogtreecommitdiff
path: root/src/xmpp_stream_in.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2018-07-06Move XMPP stream and SASL processing to xmpp repoEvgeniy Khramtsov1-1220/+0
2018-07-05Move move randoms module to p1_utils repoEvgeniy Khramtsov1-1/+1
2018-07-05Move shaper to p1_utils repoEvgeniy Khramtsov1-1/+1
2018-06-25Use error formatting functions from xmpp libraryEvgeniy Khramtsov1-18/+4
2018-05-26Don't call Mod:function() in xmpp_stream callbacksEvgeniy Khramtsov1-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.
2018-02-26xmpp_stream_in: Run auth result callbacks earlierHolger Weiss1-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.
2018-02-09Introduce option 'validate_stream'Evgeniy Khramtsov1-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.
2018-01-28Improve logging of idle s2s connectionsEvgeniy Khramtsov1-2/+3
2018-01-24Reduce log level for unexpected XML inputHolger Weiss1-2/+2
Log a warning rather than an error when, for example, a client sends a stanza before opening the stream.
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-12-26Get rid of ejabberd receiverEvgeniy Khramtsov1-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.
2017-12-17Fix processing orderEvgeniy Khramtsov1-14/+14
2017-12-13Only allow compression after SASLEvgeniy Khramtsov1-4/+6
See XEP-0170 for details Thanks to Vitaly Takmazov for spotting this
2017-12-09Better process subtag decoding errorsEvgeniy Khramtsov1-2/+7
2017-11-24Don't crash on unexpected XML eventsEvgeniy Khramtsov1-0/+10
In fact, seems like this is a problem in the receiver code (or fast_xml?) and should be fixed there
2017-10-13Reflect changes in the xmpp libEvgeniy Khramtsov1-5/+5
2017-08-25Fix a typoEvgeniy Khramtsov1-1/+1
2017-04-15Fix closing of outbound S2S connectionsEvgeniy Khramtsov1-16/+15
2017-04-15Improve ejabberd_c2s:close()Evgeniy Khramtsov1-20/+15
2017-04-14Make sure stream trailer is sent in the very endEvgeniy Khramtsov1-6/+7
2017-04-04Fix c2s connection close on demandEvgeniy Khramtsov1-0/+10
Fixes #1652
2017-03-14Get rid of p1_sha callsAlexey Shchepin1-1/+1
2017-03-12Return 'closed' instead of 'einval' on closed socketsEvgeniy Khramtsov1-0/+2
2017-03-01External components must always provide 'to' attributeEvgeniy Khramtsov1-2/+2
2017-02-28Add s2s work-around for gmail.comEvgeniy Khramtsov1-3/+10
2017-02-27Don't perform useless resourceprepEvgeniy Khramtsov1-17/+9
2017-02-19Let ejabberd_c2s handle <session/> IQHolger Weiss1-12/+1
This fixes the counting of incoming stanzas for stream management.
2017-02-18Fix some dialyzer warningsEvgeniy Khramtsov1-2/+2
2017-02-08Use p1_server behaviour in xmpp_stream layerEvgeniy Khramtsov1-1/+1
2017-01-23Make test suite working againEvgeniy Khramtsov1-2/+2
2017-01-21Send <compressed/> in correct orderEvgeniy Khramtsov1-11/+11
2017-01-20Update copyright headers in new filesEvgeniy Khramtsov1-1/+1
2017-01-18Fix reporting dialback failuresEvgeniy Khramtsov1-2/+2
2017-01-17Reset XML stream before sending SASL <success/>Evgeniy Khramtsov1-1/+1
2017-01-13Fix some corner cases while re-reading RFC6120Evgeniy Khramtsov1-12/+9
2017-01-09Adopt remaining code to support new hooksEvgeniy Khramtsov1-139/+194
2016-12-31Reflect cyrsasl API changes in remaining codeEvgeniy Khramtsov1-60/+94
2016-12-30More refactoring on session managementEvgeniy Khramtsov1-82/+82
2016-12-28Add xmpp_stream_out behaviour and rewrite s2s/SM codeEvgeniy Khramtsov1-266/+577
2016-12-11Rewrite ejabberd_service to use new XMPP stream APIEvgeniy Khramtsov1-16/+88
2016-12-11Initial version of new XMPP stream behaviour (for review)Evgeniy Khramtsov1-0/+698