eschulte pushed a commit to branch master in repository elpa. commit 41bd572baeafc6c4206491894277c3d18c4982b4 Author: Eric Schulte <schulte.e...@gmail.com> Date: Sun Jan 5 23:44:25 2014 -0700
updating notes and README text --- NOTES | 8 ++++++-- README | 11 ++++++----- web-server.el | 2 +- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/NOTES b/NOTES index 49cf0b5..239ac2a 100644 --- a/NOTES +++ b/NOTES @@ -1,8 +1,8 @@ -*- org -*- * Notes -* Tasks [9/20] -** TODO handle large files +* Tasks [10/20] +** DONE handle large files When large files arrive quickly, the filter functions are called while they are still running on the previous chunk, this leads to nasty race conditions for the state of the request object. @@ -11,6 +11,10 @@ Either introduce some check to wait on new input if input is currently being parsed, or wait until all input has arrived before doing any parsing. +Now using an =active= field on request objects to avoid race +conditions when new header text is received while the parsing function +is still active. + ** TODO robustness to bad requests [0/2] Low priority, just [[*running%20behind%20a%20proxy][run behind a proxy]]. diff --git a/README b/README index c5d2bb9..0e6cdca 100644 --- a/README +++ b/README @@ -7,11 +7,12 @@ REQUIREMENTS Emacs 24.3 or later. STATUS - This is a new project without much extended use so there are - likely bugs and potentially security issues. That said it - consists of little more than HTTP header parsing logic perched - atop Emacs' existing network process primitives, so it should be - fairly robust. + Full support for HTTP GET and POST requests including URL-encoded + parameters, multipart/form data and file uploads. This is a new + project without much extended use so there are likely bugs and + potentially security issues. That said it consists of little more + than HTTP header parsing logic perched atop Emacs' existing + network process primitives, so it should be fairly robust. EXAMPLES See the examples/ directory in this repository. The Emacs Web diff --git a/web-server.el b/web-server.el index 48f788e..5d01501 100644 --- a/web-server.el +++ b/web-server.el @@ -11,7 +11,7 @@ ;; A web server in Emacs running handlers written in Emacs Lisp. ;; ;; Full support for GET and POST requests including URL-encoded -;; parameters and multi-part/form data. +;; parameters and multipart/form data. ;; ;; See the examples/ directory for examples demonstrating the usage of ;; the Emacs Web Server. The following launches a simple "hello