sort by:
Revision Author Date Message Commit Date
4e5372e Merge pull request #261 from nickva/update-ci-images Update Erlang CI images 22 September 2023, 19:24:29 UTC
293b95d Update certificates 22 September 2023, 19:08:01 UTC
fa3bf82 Update Erlang CI images * Use latest patch levels for 24 and 25. * Add 26 to the list. In Erlang 26 TLS `verify` option switched the default value from `verify_none` to `verify_peer` [1]. So had to explictly set it in the test client. [1] https://www.erlang.org/blog/otp-26-highlights/#ssl-safer-defaults 22 September 2023, 19:07:30 UTC
897f22f Update CHANGES for v3.2.1 22 September 2023, 15:37:32 UTC
97573d2 Merge pull request #260 from mikpe/fix-match-on-float-zero mochinum:digits/1: fix handling of -0.0 for OTP-26.1/27.0 22 September 2023, 14:43:37 UTC
1aa9ba1 mochinum:digits/1: fix handling of -0.0 for OTP-26.1/27.0 Matching of floating-point zeroes will change in OTP-27 so that -0.0 will no longer match a non-negative 0.0. OTP-26.1 warns about such constructs, which in mochiweb results in: src/mochinum.erl:47:8: Warning: matching on the float 0.0 will no longer also match -0.0 in OTP 27. If you specifically intend to match 0.0 alone, write +0.0 instead. Fixed by switching from a match to a numerical comparison. 22 September 2023, 11:23:01 UTC
cab4474 Merge pull request #259 from mochi/add-request-is-closed-function Update CHANGES and version for v3.2.0 31 August 2023, 17:23:56 UTC
f455126 Update CHANGES and version 31 August 2023, 17:22:15 UTC
af661f1 Merge pull request #258 from nickva/add-request-is-closed-function Add mochiweb_request:is_closed/1 function 31 August 2023, 17:22:01 UTC
8b2d844 Add mochiweb_request:is_closed/1 function This function can used during long running request callbacks to detect if the client connection is closed. If the request callback periodically streams data back to the client, the act of writting to the client socket will detect if it is closed or not. However, in cases when no data is sent back, and the client times-out and closes the connection, it may be useful to be able to find out early and stop processing the request on the server. It turns out there is no easy way to detect if a passive mode socket is closed in Erlang/OTP [1]. Neither one of inet:monitor/1, inet:info/1, inet:getstat/1 work. However, it is possible to do it by querying the TCP state info of the socket. That option available in Linux since kernel 2.4 and on other Unix-like OSes (NetBSD, OpenBSD, FreeBSD and MacOS). Windows also has a tcp info query method however it is not reacheable via the gensockopts(2) standard socket API, so it can't be queried from Erlang's inet:getopts/2 API. [1] Using the newer socket module it's possible to detect if a socket is closed by attempting a recv with a MSG_PEEK option. However, the regular gen_tcp OTP module doesn't have a recv() variant which takes extra options. In addition, the new socket implementation still feels rather experimental. (It's not the default even in the latest OTP 26 release). 31 August 2023, 17:00:54 UTC
0733494 Merge pull request #257 from mochi/fix-edoc Fix rebar edoc and test in CI 20 April 2023, 21:18:09 UTC
5bd8411 Fix rebar edoc and test in CI 20 April 2023, 20:58:17 UTC
666ac57 Merge pull request #254 from vjc22/patch-1 Update README.md 13 February 2023, 02:43:35 UTC
eaba29b Update README.md Fixed typo in line 5. 12 February 2023, 22:48:51 UTC
125d080 Update README.md Updated with the suggested changes 12 February 2023, 22:46:35 UTC
7ed4ecf Update README.md Added overview section. Added getting started section and a tutorial. Added benefits section. Added documentation section. Added contributing section. 12 February 2023, 22:01:50 UTC
7c4d311 Merge pull request #252 from mochi/test-chunked-encoding Add a test for the chunked encoding fix 12 October 2022, 05:39:17 UTC
7ad3bd3 Add a test for the chunked encoding fix 12 October 2022, 05:32:37 UTC
ef51f62 Update CHANGES.md 09 October 2022, 01:32:00 UTC
b1c5cca Merge pull request #251 from mochi/otp-25 Add OTP 25 to test matrix 09 October 2022, 01:31:02 UTC
a250223 Note latest compatibility in README 07 October 2022, 16:29:01 UTC
26f388b Add OTP 25 to test matrix 07 October 2022, 16:11:03 UTC
1ccacbf Merge pull request #249 from BradS2S/main Bug in mochiweb_request:read_chunk_length/2 #188 21 September 2022, 14:46:00 UTC
6d94ceb Bug in mochiweb_request:read_chunk_length/2 #188 I'm still very new to Erlang but this seems pretty straightforward. 21 September 2022, 06:34:35 UTC
bd0c848 fix release date 14 August 2022, 02:35:05 UTC
6d22721 Merge pull request #248 from mochi/follow-up-247 v3.1.0 14 August 2022, 02:33:15 UTC
48c0cdd v3.1.0 14 August 2022, 02:26:14 UTC
16c43ef Merge pull request #247 from big-r81/patch-2 Remove leading and trailing whitespaces 14 August 2022, 02:19:07 UTC
38aadf3 Remove leading and trailing whitespaces from field-values to be RFC 7230 compliant. 11 August 2022, 13:47:29 UTC
a46b10a Merge pull request #245 from big-r81/patch-1 11 August 2022, 13:21:53 UTC
927cd19 Fix typo in atom 11 August 2022, 08:07:15 UTC
845803a Merge pull request #241 from mochi/rebar3 Start on rebar3 support 10 May 2022, 03:29:17 UTC
8936dcd Update CHANGES.md 10 May 2022, 03:26:19 UTC
db44f53 build is a phony target as well 10 May 2022, 00:09:22 UTC
a55c1ec Merge pull request #243 from nickva/rebar3-improvements Rebar3 improvements 10 May 2022, 00:03:59 UTC
995bc29 Simplify Makefile and update CI Remove `app` file and allow specifying a different REBAR executable so we can test both rebar2 and rebar3. Since OTP team provides docker images we can use those for CI. They seem to be a bit more recent than ESL packages and also provide `rebar` and `rebar3` commands. 09 May 2022, 21:43:22 UTC
f4db791 Remove rebar 2 binary. 09 May 2022, 21:15:35 UTC
0058559 Replace template project with an example project Since rebar3 expects templates to be in `~/.config/rebar3/templates/` [1], opt to instead having just an example project users can copy and update on their own. [1] https://www.rebar3.org/docs/tutorials/templates 09 May 2022, 20:58:30 UTC
3b3478c Start on rebar3 support 06 May 2022, 16:05:59 UTC
53114ba Merge pull request #242 from nickva/acceptor-fix-recycler-error-reporting Handle {shutdown, Error} when recycling acceptor pids 06 May 2022, 16:02:18 UTC
077b4f8 Handle {shutdown, Error} when recycling acceptor pids After https://github.com/mochi/mochiweb/pull/238 acceptor processes would exit with {shutdown, Error} on timeouts and other errors which were `normal` before. 06 May 2022, 14:19:03 UTC
83fd22d Merge pull request #239 from mochi/minimum-otp-18 Set minimum OTP to 18 06 May 2022, 05:28:39 UTC
73f9244 Merge pull request #240 from nickva/remove-erlang-version-less-than-18 Two minor patches to help with Erlang <18 support removal 06 May 2022, 03:51:34 UTC
1bbae50 Attempt to fix CI with latest ESL packages for each major version 06 May 2022, 03:01:30 UTC
5e47b28 A bit more cleanup for R15 emsgsize workaround Since we're not inspecting the message in handle_invalid_msg_request any longer, we don't have to pass the message in altogether. 06 May 2022, 02:49:14 UTC
22032de Set minimum OTP to 18 06 May 2022, 01:34:55 UTC
fce80ef Merge pull request #238 from nickva/use-shutdown-for-process-exits Use {shutdown, Error} when terminating connection processes 05 May 2022, 21:58:25 UTC
5d51075 Update changes log about the potential exit(normal) incompatibility 04 May 2022, 17:07:34 UTC
e56a4dc Use {shutdown, Error} when terminating connection processes Previously they exited `normal`, which helped avoid error log spam. However, that also meant any linked helper processes would not exit when the main connection process had been terminated. To automatically clean up any linked processes, and continue avoiding generating error logs, we can use `{shutdown, Error}` as the exit reason. That error, along with `shutdown` atom, are special exit reasons which are considered `normal` for proc_lib processes and will not generate error logs [1]. Another benefit is having more specific exit reasons (send error, recv error, etc.), which may help with debugging. [1] https://www.erlang.org/docs/24/man/proc_lib.html#description 02 May 2022, 22:13:42 UTC
c724c3a Merge pull request #237 from kianmeng/fix-typos Fix typos 10 March 2022, 15:54:01 UTC
d4f8da2 Fix typos 10 March 2022, 15:48:38 UTC
835b107 Merge pull request #235 from mochi/automate-hex-publish Automate hex publish 23 August 2021, 23:15:49 UTC
e3cdf58 Attempt to automate hex publish 23 August 2021, 23:13:19 UTC
e9eb2f1 Rename master to main 05 August 2021, 15:53:31 UTC
04eba48 Merge pull request #234 from noahshaw11/add-unquote-path-for-separate-+-encoding Add unquote_path/1 for separate + encoding 28 July 2021, 22:23:03 UTC
c388368 Add unquote_path/1 for separate + encoding 28 July 2021, 21:35:44 UTC
db54089 Merge pull request #232 from mochi/v2.21.0 v2.21.0 and try github actions 07 June 2021, 03:54:02 UTC
3f4884c v2.21.0 and try github actions 07 June 2021, 03:47:56 UTC
448984c Merge pull request #231 from noahshaw11/upgrade-crypto-functions-to-support-OTP-23 Upgrade crypto functions to support OTP 23 04 June 2021, 16:15:00 UTC
dae0ac3 Upgrade crypto functions to support OTP 23 01 June 2021, 16:11:14 UTC
070594e Merge pull request #229 from mochi/fix-release fix release number 14 February 2020, 16:43:08 UTC
49a3c93 fix release number 14 February 2020, 15:55:22 UTC
7bc0d63 Merge pull request #228 from mochi/changes-v2.20.1 Update CHANGES for v2.20.1 03 February 2020, 17:48:18 UTC
9729f65 Update CHANGES for v2.20.1 03 February 2020, 17:42:48 UTC
562b32f remove deprecated metadata 03 February 2020, 10:02:50 UTC
cedc22f Merge pull request #226 from mochi/otp-22 Update CHANGES and add OTP 21.3, 22 to travis matrix 15 July 2019, 01:46:36 UTC
0c68ac4 Update CHANGES and add OTP 21.3, 22 to travis matrix 15 July 2019, 01:39:43 UTC
c5e7b83 Merge pull request #225 from djnym/support-samesite-none add support for SameSite=none in cookies 15 July 2019, 01:34:21 UTC
fc8de2b add support for SameSite=none in cookies 12 July 2019, 22:00:34 UTC
ad11980 Merge pull request #220 from penhs/master Update README.md 26 May 2019, 02:19:02 UTC
c692fd7 Use https for URLs in README.md 22 May 2019, 03:41:21 UTC
ec98873 Merge pull request #221 from mochi/fix-travis-build Use dist: trusty for Travis builds with old Erlang releases 22 May 2019, 03:39:49 UTC
d12ac64 Use a matrix to get an older dist for old releases 22 May 2019, 03:31:18 UTC
2b4b272 Debug Travis, it seems like older releases are not working 22 May 2019, 03:24:56 UTC
9f024df Update README.md 22 May 2019, 00:26:37 UTC
05d3ceb Update README.md 22 May 2019, 00:24:46 UTC
2cb3104 Merge pull request #215 from mochi/remove-tuple-calls Remove tuple calls 12 March 2019, 20:07:23 UTC
69d6df7 Run erl_tidy on modified source files ```erlang lists:foreach( fun (F) -> erl_tidy:file(F, [{backups, false}, keep_unused]) end, string:split( string:trim( os:cmd("git diff --name-only origin/master | grep \".erl$\"") ), "\n", all ) ). ``` 12 March 2019, 03:49:26 UTC
8892431 Remove compile(tuple_calls) from test/mochiweb_request_tests 12 March 2019, 01:41:45 UTC
1054298 Remove compile(tuple_calls) from test/mochiweb_tests 12 March 2019, 01:32:24 UTC
2cae813 Remove compile(tuple_calls) from test/mochiweb_websocket_tests 12 March 2019, 01:32:14 UTC
1092472 Remove compile(tuple_calls) from test/mochiweb_http_tests 12 March 2019, 01:26:08 UTC
58699cb Remove compile(tuple_calls) from examples/keepalive 11 March 2019, 22:57:58 UTC
b6b3ff1 Remove compile(tuple_calls) from examples/https_store 11 March 2019, 22:55:44 UTC
1c73aaf Remove compile(tuple_calls) from examples/hmac_api 11 March 2019, 22:51:02 UTC
ef4f886 Remove compile(tuple_calls) from the template 11 March 2019, 22:45:20 UTC
5ae2f0a Remove compile(tuple_calls) from mochiweb_websocket 11 March 2019, 21:57:26 UTC
763fa52 Remove compile(tuple_calls) from mochiweb_response 11 March 2019, 21:57:26 UTC
c3e45be Remove compile(tuple_calls) from mochiweb_request 11 March 2019, 21:57:22 UTC
6f9452c Remove compile(tuple_calls) from mochiweb_multipart 09 March 2019, 20:47:44 UTC
dc74151 Remove compile(tuple_calls) from mochiweb_http 09 March 2019, 20:43:12 UTC
2ab10af Remove compile(tuple_calls) from mochiweb_acceptor 09 March 2019, 20:38:37 UTC
83fdebc Remove compile(tuple_calls) from mochifmt 09 March 2019, 20:28:47 UTC
7884405 Merge pull request #213 from mochi/lego12239-master fix cookie value parsing (follow up) 04 March 2019, 16:55:44 UTC
9a1b109 Use more direct translation of RFC 6265 grammar 04 March 2019, 16:45:59 UTC
458eedf fix cookie value parsing Cookie value(according to RFC6265) can contain US-ASCII characters excluding CTLs, whitespace, DQUOTE, comma, semicolon and backslash: cookie-header = "Cookie:" OWS cookie-string OWS cookie-string = cookie-pair *( ";" SP cookie-pair ) cookie-pair = cookie-name "=" cookie-value cookie-value = *cookie-octet / ( DQUOTE *cookie-octet DQUOTE ) cookie-octet = %x21 / %x23-2B / %x2D-3A / %x3C-5B / %x5D-7E But mochiweb_cookie:parse_cookie() use smaller allowed characters list. For example, if cookie value is base64 string like MQ==, then parse_cookie() makes it MQ. Fix this by using a separate function for value parsing instead of read_token(). 04 March 2019, 12:34:59 UTC
985fa8a Add missing issue URL to CHANGES.md 17 January 2019, 18:01:02 UTC
9efbaac Merge pull request #210 from mochi/otp-21.2 Add 21.1 and 21.2.3 to otp_release matrix 17 January 2019, 17:57:12 UTC
cb0c0d0 Update CHANGES.md with release date 17 January 2019, 17:56:51 UTC
4c038b6 Note this PR. Still have to wait a day for Travis-CI to have this build available 16 January 2019, 17:50:30 UTC
back to top