Skip to content

Releases: uNetworking/uWebSockets

v20.61.0

09 Mar 20:34
Compare
Choose a tag to compare

RFC 9110 fix part deux

Previous release did not fix all problems with, for instance, underscores in HTTP field names. This release properly fixes such cases and also makes the HTTP server 14% faster in user space.

A new benchmarking project has been added for reliably benchmarking the entire user space portion of the server by overriding epoll syscalls with traffic producing alternatives. This is a similar approach to how we currently fuzz the user space.

v20.60.0

09 Feb 21:05
Compare
Choose a tag to compare

RFC 9110 fix

A misinterpretation of the spec. has been fixed re. HTTP field names. If you rely on field names that aren't just alphanum + hyphen, this release should fix your use.

v20.59.0

07 Feb 13:40
Compare
Choose a tag to compare
  • Bumps uSockets to v0.8.8
  • Minor fixes

v20.58.0

25 Jan 00:49
Compare
Choose a tag to compare

Parameter routing fixes

Having multiple URL routes with differently named parameter segments at the same depth in the routing tree would cause the order of matching to be potentially different from what the documentation stated.

This release fixes that, and adds more testing for this scenario.

v20.57.0

22 Jan 11:21
Compare
Choose a tag to compare

Experimental cross-platform uWS::LocalCluster

We've always supported multi-CPU scaling as detailed in the HelloWorldThreaded.cpp example and benchmarking blog posts. However, this example has only been properly supported on Linux systems and contained some really ugly boiler plate code.

This release adds the uWS::LocalCluster helper that works properly on Windows, macOS, Linux and makes it easy to take any single-CPU app and make it scale over all available CPU-cores by default:

uWS::App(options).get(pattern, handler).listen(port, handler).run();

simply becomes

uWS::LocalCluster(options, [](uWS::App &app) {
  app.get(pattern, handler).listen(port, handler);
});

This is reflected in the updated HelloWorldThreaded.cpp example and works for both SSL and non-SSL clusters.

v20.56.0 on macOS (capped at 99% CPU-time)

Screenshot 2024-01-22 at 11 46 36

v20.57.0 on macOS (approaches 800% CPU-time)

Screenshot 2024-01-22 at 11 43 57

v20.56.0

08 Jan 21:23
Compare
Choose a tag to compare

SSL fixes

  • Don't crash on addServerName when provided files are missing
  • Disable a (broken) per-SSL optimization that caused issues with backpressure in certain cases

v20.55.0

27 Dec 19:46
Compare
Choose a tag to compare
  • Adds named parameter getters (as complement to integral offset getters) like so:
	/* Define a parameter route */
	.get("/:first/static/:second", [](auto *res, auto *req) {

		/* Use the value of a parameter as response */
		res->write("<h1>first is: ");
		res->write(req->getParameter("first"));
		res->write("</h1>");

		res->write("<h1>second is: ");
		res->write(req->getParameter("second"));
		res->end("</h1>");

	})
  • Adds new example showing the above in use.

v20.54.0

27 Dec 01:30
Compare
Choose a tag to compare
  • Bumps the maximum HTTP receive body size from 30 bits to 62 bits (1 GB -> 4294967296 GB)

v20.53.0

23 Dec 23:10
Compare
Choose a tag to compare
  • Fixes the bug of upgrading to websocket within HttpResponse::cork callback.

v20.52.0

23 Dec 15:27
1b89d82
Compare
Choose a tag to compare
  • Routes are overwritten by default (no need to first remove it manually).