aboutsummaryrefslogtreecommitdiff
path: root/src/ejabberd_websocket.erl (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-11-04Add some missing RFCs and remove problematic leading 0 in xep versionsBadlop1-0/+1
2022-02-11Update copyright year to 2022Badlop1-1/+1
2021-06-15ref: fix WS typosPouriya1-32/+32
2021-06-12ref: fix WS typosPouriya Jahanbakhsh1-32/+32
2021-02-04Fix PONG responses (#3515)Frank1-1/+1
Co-authored-by: Frank Diebolt <frank.diebolt@al-enterprise.com>
2021-01-27Update newest copyright year to 2021 (#3464)Badlop1-1/+1
2020-10-13Make websocket send put back pressure on c2s processPaweł Chmielowski1-0/+10
Previously c2s was free to generate data to send in unlimited manner, and just generate queue of messages that are waiting to be send. This could lead to hitting timouts in stream management ack handling (if c2s generate lot of packages, after which <r> request was sent, client could even not receive it before timeout was triggered on server waiting for corresponding <a>). This changes makes c2s process wait for data being sent to tcp socket associated with websocket connection, which should help with this problem.
2020-09-03Use include_lib() to include headers from dependencies (#3369)Stu Tomlinson1-1/+1
2020-01-28Update copyright to 2020 (#3149)Badlop1-1/+1
2019-09-23Correctly handle unicode in log messagesEvgeny Khramtsov1-2/+2
2019-07-29Apply shaping to websocket connectionsFrank Diebolt1-15/+47
2019-06-24Make logging messages more consistentEvgeny Khramtsov1-6/+6
2019-06-14Use new configuration validatorEvgeny Khramtsov1-26/+2
2019-05-09Handle TCP errors in websocketsEvgeny Khramtsov1-0/+3
2019-04-26Return "Bad request" error when origin in websocket connection doesn't matchPaweł Chmielowski1-37/+55
This also allow websocket_origin option to accept multiple values instead of just single one.
2019-04-25Use binary framing in MQTT WebSocketsEvgeny Khramtsov1-1/+5
2019-04-24Fix RFC6454 violation on websocket connection when validating Origin headerPaweł Dorofiejczyk1-9/+9
2019-04-23Move websocket optionsEvgeny Khramtsov1-3/+21
2019-03-15Origin header validation on websocket connection (#2821)Paweł Dorofiejczyk1-1/+5
2019-01-30Revert "Apply shaping to websocket connections"Frank Diebolt1-46/+14
This reverts commit dda89aeda070d03d9cb19dcdbba8b6ad033b2d45.
2019-01-30Apply shaping to websocket connectionsFrank Diebolt1-14/+46
2019-01-08Update copyright to 2019 (#2756)Badlop1-1/+1
2018-06-14Get rid of ejabberd.hrl headerEvgeniy Khramtsov1-1/+0
The header consisted of too many unrelated stuff and macros misuse. Some stuff is moved into scram.hrl and type_compat.hrl. All macros have been replaced with the corresponding function calls. TODO: probably type_compat.hrl is not even needed anymore since we support only Erlang >= OTP 17.5
2018-05-14Optimize HTTP requests memory usageEvgeniy Khramtsov1-6/+7
Due to historical reasons, ejabberd loads the whole file/data into the memory when serving an HTTP request. This is now improved: 1) For GET requests ejabberd uses sendfile(2) if the underlying connection is HTTP and falls back to read/write loop with 64kb buffer for HTTPS connections. This type of requests are handled by mod_http_fileserver, mod_http_upload, ejabberd_captcha, etc 2) POST requests are now limited to 20Mb and are fully downloaded into the memory for further processing (by ejabberd_web_admin, mod_bosh, etc) 3) PUT requests (e.g. for mod_http_upload) are handled by read/write loop with 64kb buffer
2018-01-05Update copyright datesEvgeniy Khramtsov1-1/+1
2017-05-23Deprecate misc:encode_base64/1 and misc:decode_base64/1Evgeniy Khramtsov1-1/+1
2017-04-11Rename aux.erl as misc.erl17.04Christophe Romain1-1/+1
Thanks Microsoft Windows to not support some filenames
2017-03-30Deprecate jlib.erl in favor of aux.erlEvgeniy Khramtsov1-1/+1
Since the main goal of jlib.erl is lost, all auxiliary functions are now moved to aux.erl, and the whole jlib.erl is now deprecated.
2017-02-13Use crypto:hash/2 functionPeter Lemenkov1-1/+1
Use crypto:hash/2 function instead of ones from p1_sha. This function exists since commit erlang/otp@208f9ad3828313f6c659a501d53f5534ec1bdf2e and also implemented as NIF, so I believe it's safe to use it. Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
2017-01-02Update copyright date automatically (#1442)Badlop1-1/+1
2016-07-30Get rid of "jlib.hrl" dependency in some modulesEvgeniy Khramtsov1-1/+1
2016-02-03Switch to fast_tls and update app namesMickael Remond1-3/+3
2016-01-13Update copyright to 2016 (#901)Badlop1-1/+1
2015-09-04Pass stream management options defined in http listener to http-bind and ↵Paweł Chmielowski1-2/+4
websocket
2015-05-21Document protocol support (EJABS-1620)Badlop1-0/+2
2015-04-05ejabberd_websocket: Ignore case of header valuesHolger Weiss1-2/+3
RFC 6455 says that the client's opening handshake includes an Upgrade header field "containing the value 'websocket', treated as an ASCII case-insensitive value." Closes #510.
2015-02-25Add support for websocket connectionsPaweł Chmielowski1-0/+403