summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2013-11-11main: return after processing -d switchJo-Philipp Wich
2013-09-13ubus: use "ubus_rpc_session" instead of "sid" attribute name when querying ↵Jo-Philipp Wich
session.access
2013-09-13ubus: fix session example script to conform to new rpc protocolJo-Philipp Wich
2013-09-13ubus: deny requests with a "ubus_rpc_session" toplevel attribute to prevent ↵Jo-Philipp Wich
injecting different SIDs
2013-08-08ubus: pass current session id as ubus_rpc_session attribute to any called ↵Jo-Philipp Wich
procedure
2013-08-07ubus: move sid into the params array of the json-rpc request to avoid ↵Jo-Philipp Wich
information leakage via the post url
2013-08-07ubus: use per-request blob buffer to fetch list results, fixes global buffer ↵Jo-Philipp Wich
corruption with concurrent requests
2013-07-31client: prevent further read calls after a client has been freedFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-31proc: consume all data after the pipe dies, instead of looping with 100% cpu ↵Felix Fietkau
usage Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-26detect chrome before safari, chrome includes Safari/ in the UA headerFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-26disable connection_close override if a keep-alive header is foundFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-07-26disable keep-alive for POST requests to improve compatibilityFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-21ubus: fix handling of empty JSON-RPC batchesFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-06-08ubus: duplicate request buffer to avoid memory corruption with multiple requestsJo-Philipp Wich
2013-06-08ubus: use half of the script timeout as timeout for acl lookup callJo-Philipp Wich
2013-06-05ubus: implement list method to enumerate objects and signaturesJo-Philipp Wich
2013-06-01relay: cancel the timeout on freeFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-30ubus: clear the right timeout on rpc connection teardownsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-30ubus: fix script timeout unit (seconds, not milliseconds)Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-23relay: do not process headers after the first errorFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-23relay: fix close handlingFelix Fietkau
When the relay process has exited, close the connection as soon as no data can immediately be read from the socket anymore, and the read buffer has been emptied. This fixes timeouts with scripts that leave processes lingering around without closing their fds. Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-23fix infinite loop when the initial two characters in a connection are \r\nFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-16uhttpd: allow the config to override the default index fileFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-05-14uhttpd: mark a TLS connections internally to clean up their stateFelix Fietkau
Fixes a per-SSL-connection memory leak Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-04-17Accept square bracket notation for IPv6 addressesJo-Philipp Wich
2013-04-15tls: fix container_of use for casting the ssl ustream to client stateFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-03-18lua: fix query string handling, the QUERY_STRING environment variable must ↵Jo-Philipp Wich
not contain the leading question mark
2013-03-18Load plugins with RTLD_GLOBAL, fixes Lua library exportsJo-Philipp Wich
2013-03-15relay: add a missing buffer availability checkFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-03-12detect the right library name for json-cFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-03-05plugin.c: don't assume post_init callback to existJo-Philipp Wich
2013-01-26ubus: use a default sid if authentication is disabledJo-Philipp Wich
2013-01-26set the docroot to the current working directory if none is specified, fixes ↵Jo-Philipp Wich
random null pointer dereferencing
2013-01-25ubus: pass json rpc arguments to called ubus functionsJo-Philipp Wich
2013-01-25ubus: add option to not authenticate ubus requestsJo-Philipp Wich
2013-01-25ubus: remove session api from plugin and check access via ubus call to let ↵Jo-Philipp Wich
other services provide the session api
2013-01-23ubus: rename uloop_timeout_pending() to uloop_timeout_remaining()Jo-Philipp Wich
2013-01-23make arguments of not compiled functionality non-fatalJo-Philipp Wich
2013-01-22ubus: expose remaining session lifetime in ubus session.list callJo-Philipp Wich
2013-01-22proc: call read notify after more write space is availableFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-22do not reset .notify_write on request doneFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-21add missing check for unencrypted passwordsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19do not relay empty chunks, they look like EOF in chunked encodingFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19implement support for script timeout for cgi/luaFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19add support for deferring script requests, limit maximum number of script ↵Felix Fietkau
calls to 3, maximum number of connections to 100 Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19ignore initial newlines in http requestsFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19fix container_of() on ustream callbacksFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19poll read data after connect as wellFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19poll connection after request completion when using keepaliveFelix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
2013-01-19properly terminate headers of http responses without data, add Content-Length: 0Felix Fietkau
Signed-off-by: Felix Fietkau <nbd@openwrt.org>