Fix bug with reused file descriptors (#471)

* Fix bug with reused file descriptors

* Remove client connection if write_object_chunk fails

* Handle ECONNRESET on unsuccessful write

* lint

* Back to lowercase

* fix compilation

* fix linting
This commit is contained in:
Stephanie Wang
2017-05-02 19:45:27 -07:00
committed by Philipp Moritz
parent 2bbfc5da8d
commit e50a23b820
6 changed files with 53 additions and 29 deletions
+1 -1
View File
@@ -60,7 +60,7 @@ void event_loop_destroy(event_loop *loop);
* argument to the handler. Currently there can only be one handler per file.
* The events parameter specifies which events we listen to: EVENT_LOOP_READ
* or EVENT_LOOP_WRITE. */
void event_loop_add_file(event_loop *loop,
bool event_loop_add_file(event_loop *loop,
int fd,
int events,
event_loop_file_handler handler,