1
0
mirror of https://git.kore.io/kore.git synced 2024-11-19 16:36:53 +01:00
Commit Graph

1202 Commits

Author SHA1 Message Date
Joris Vink
3dfad1b7d6 remove unneeded include. 2018-05-04 15:56:56 +02:00
Joris Vink
439a3b36f0 Add kore_strtodouble().
Use it for http_argument_get_float() and http_argument_get_double().
2018-05-04 15:55:35 +02:00
Joris Vink
b7669f49f7 typo 2018-05-03 21:40:50 +02:00
Joris Vink
68f5e33768 kodev improvements.
Allow KORE_SOURCE and KORE_FLAVOR to come from the environment,
overriding any configured kore_source or kore_flavor configuration
setting from the build.conf for the application.

I wanted an easier way of switching between Kore trees while hacking
on some of my apps, this is it.
2018-05-03 21:27:52 +02:00
Joris Vink
46633e3978 Flesh out the new kodev manual page. 2018-04-26 19:06:55 +02:00
Guy Nankivell
4852d5db3f Adds specifics of the kore.conf to kodev(1) 2018-04-26 21:12:31 +12:00
guynan
5a45a57592
Merge pull request #244 from guynan/man
Man
2018-04-26 20:07:28 +12:00
Guy Nankivell
7efc968f3d Adjusts wording for greater accuracy. 2018-04-26 10:19:17 +12:00
Joris Vink
3a283cd05c let KORE_MSG_WORKER_ALL include sender. 2018-04-24 20:11:48 +02:00
Joris Vink
5487950f63 cut off port from the domain when needed. 2018-04-24 20:11:41 +02:00
Guy Nankivell
5ec94965eb More comprehensive page detailing configurations 2018-04-24 11:21:21 +12:00
Guy Nankivell
66e9f4db77 Adds manpage for kodev 2018-04-24 09:56:35 +12:00
Joris Vink
98af796acd Improve kodev a tiny bit.
kodev is creating x509s and writing out the dh parameters if they
do not exist in the application each time. This is annoying if
you explictly specified NOTLS=1 in the kore_flavor build options.

So just tell kodev to not do this if NOTLS=1 is present.
2018-04-18 19:51:25 +00:00
Joris Vink
6665ad9c45 add comment that master should always work. 2018-04-13 16:07:04 +02:00
Joris Vink
658bb2936e minor style 2018-04-13 16:05:59 +02:00
Joris Vink
92bd546935 Remove unused argument. 2018-04-13 16:04:33 +02:00
Joris Vink
bfd4851c85 minor style fixes 2018-04-13 07:41:22 +02:00
Sebastiaan
a3cab0d97b Websocket memory leak fix when using kore_websocket_send() to send data. (#238) 2018-04-13 07:40:37 +02:00
Joris Vink
f7678946a1 don't set our own exception on invalid parameters. 2018-04-11 13:32:56 +02:00
Joris Vink
d73a9114c0 Improve http_response() for server side errors.
In case http_response() is called with an error code indicating
a server side error (>= 500) do not append any headers set by the
caller.
2018-04-11 13:04:26 +02:00
Joris Vink
4ab028633a If a python handler failed, don't fatal on purpose.
Instead log and send an internal error status back to the client.

This should be OK as long as the exception doesn't happen after
the caller called req.response() already.
2018-04-11 13:00:30 +02:00
Joris Vink
ab956fc97a better pyko readme 2018-04-10 22:48:13 +02:00
Joris Vink
bb210db3df let pyko skeletons setup 'appdb' if available.
If a worker can pickup PYKO_CONNINFO from the environment it will register a
new pgsql connection called 'appdb' tied to the given connection string.
2018-04-10 18:26:22 +02:00
Joris Vink
a35dfc6d06 Teach kodev create about pyko applications.
Now you can create a pyko application skeleton using kodev:

	$ kodev create -p myapp

Not sure if this functionality will remain in kodev, but for now i'm undecided.
2018-04-10 16:20:50 +02:00
Joris Vink
bcbed3b349 let us know why we failed to open a config file. 2018-04-10 15:16:05 +02:00
Joris Vink
85cff54a5f don't let kore_parse_config_file() call fclose.
It doesn't own the FILE pointer, it shouldn't call fclose() on it,
thats just confusing.
2018-04-10 14:39:57 +02:00
Joris Vink
43a0aef29f prefix HTTP defines when exporting them to python. 2018-04-10 14:35:52 +02:00
Joris Vink
6f45db6a01 pyko: call kore_python_path() on the module path. 2018-04-10 14:32:48 +02:00
Joris Vink
45260b491b finally got fed up with the "is exhausted" spam. 2018-04-10 14:11:06 +02:00
Joris Vink
fd53f48cec pyko: allow running without app argument.
If no app argument was given, assume we should use the cwd
and interpret "." as the cwd as well.

makes it easier to do things like:

	$ pyko -frn
2018-04-09 20:50:47 +02:00
Joris Vink
5b0772b646 pyko: reshuffle comment. 2018-04-09 20:36:05 +02:00
Joris Vink
bafb99445f pyko: change to module directory before starting. 2018-04-09 20:35:11 +02:00
Joris Vink
65666942e6 we're still in dev, not rc. 2018-04-09 14:23:55 +02:00
Joris Vink
ceb67f172c fix building with NOHTTP=1. 2018-04-09 12:20:26 +00:00
Joris Vink
a33ce78a19 it's time. 2018-04-09 14:14:00 +02:00
Joris Vink
26f0677915 be consistent with the app path example 2018-04-09 13:10:05 +02:00
Joris Vink
d9755722a1 missing license 2018-04-09 13:06:35 +02:00
Joris Vink
bf4361092c Add pyko, not linked to build. 2018-04-09 13:05:38 +02:00
Joris Vink
9c337ded1e Change kore_parent_configure() for single binaries.
This function now takes any remaining arguments passed on the command line
after kore parsed its own.

For C the new prototype looks like this:

void kore_parent_configure(int argc, char **argv);

For python code, kore will pass each argument to the function so you
can do things like:

def kore_parent_configure(arg1, arg2):
2018-04-09 12:51:20 +02:00
Joris Vink
cb4567683a use MAP_FAILED. 2018-04-04 09:34:18 +02:00
Joris Vink
6a35a8a455 remove dead code. 2018-04-03 10:57:40 +02:00
Joris Vink
da8d1800bf free name if we're not using the asset in kodev.
minor leak, doesn't affect run-time of kore.
2018-04-03 10:53:41 +02:00
Joris Vink
edfd5c3d49 update -h output a bit. 2018-04-02 18:20:57 +02:00
Joris Vink
28922323a7 openssl got rid of their freelists a while ago.
so remove the hack we did to manually force them to not be used.
2018-04-02 17:58:00 +02:00
Joris Vink
f05782440b shuffle output from kodev info a bit. 2018-03-30 14:04:07 +02:00
Joris Vink
cb206a589a Use kore_source headers if single_binary is set.
Before kodev always picked up the kore headers installed on the system.
This presented some annoying problems as the system headers may not
match the headers used by the kore_source you're actually building
against.
2018-03-30 13:47:32 +02:00
Joris Vink
4cfdda290f install headers correct again 2018-03-30 13:47:12 +02:00
Joris Vink
e6833a4892 Move header files to include/kore.
Mimics how the header files are installed on a system
as PREFIX/include/kore.

This is required for getting kodev to use the headers from the
kore_source option instead of requiring the kore headers to be
installed on the system even when building as a single_binary.
2018-03-30 13:45:29 +02:00
Joris Vink
548068d2a0 Add http_request_ms configuration option.
This option allows a user to finetune the number of milliseconds
a worker process will max spend inside the http_process() loop.

By default this is 10ms.
2018-03-14 13:41:17 +01:00
Joris Vink
c55036bfec Improve client timeout hanlding.
Do not run the idle timer check for client if it still has a request
queued up. Otherwise if the worker process is very busy you might hit
the timeout even though the client sent us a full request which was queued.
2018-03-14 13:35:47 +01:00