mirror of https://git.kore.io/kore.git
1d604643b5
Before Kore would spawn a task thread per task started if none were available. This was an obvious bad idiom but never really hit me hard until now. Kore will now only spawn as many task threads as configured by "task_threads" and queue up any newly started tasks ontop of already running threads if the limit was hit. |
||
---|---|---|
.. | ||
conf | ||
src | ||
README.md |
README.md
Kore task example.
This example creates an asynchronous task from the page handler that performs a POST to the same server and fetches its data before returning to the client.
Build:
# env LDFLAGS="-I/path/to/libcurl -lcurl" kore build
Run:
# kore run
Test:
# curl -i -k https://127.0.0.1:8888/?user=astring
The returned data must match what you supplied in user ([a-z] string)