Permalink
Browse files

added comment on error handling in send-string

  • Loading branch information...
1 parent 3843a08 commit 249657c8fcd4e23e1361335ddb39940ba254e9fd @nicferrier committed Apr 14, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 elnode.el
View
@@ -1283,6 +1283,8 @@ This is really only a placeholder function for doing transfer-encoding."
(let ((len (string-bytes str)))
(process-put httpcon :elnode-bytes-written
(+ len (or (process-get httpcon :elnode-bytes-written) 0)))
+ ;; FIXME Errors can happen here, because the socket goes away.. it
+ ;; would be nice to trap them and report and then re-raise them.
(process-send-string httpcon (format "%x\r\n%s\r\n" len (or str "")))))
(defvar elnode-http-codes-alist

0 comments on commit 249657c

Please sign in to comment.