Browse files

Fix e88527b

  • Loading branch information...
1 parent f6d9fc6 commit 65f401f08028d9254a1653241df8254dc22c632c @jonashaag committed Sep 20, 2011
Showing with 2 additions and 0 deletions.
  1. +2 −0 bjoern/server.c
View
2 bjoern/server.c
@@ -184,6 +184,7 @@ ev_io_on_read(struct ev_loop* mainloop, ev_io* watcher, const int events)
return;
}
+/* XXX too much gotos */
static void
ev_io_on_write(struct ev_loop* mainloop, ev_io* watcher, const int events)
{
@@ -200,6 +201,7 @@ ev_io_on_write(struct ev_loop* mainloop, ev_io* watcher, const int events)
assert(!request->current_chunk_p);
/* abuse current_chunk_p to store the file fd */
request->current_chunk_p = PyObject_AsFileDescriptor(request->iterable);
+ goto out;
}
if(do_sendfile(request))
goto out;

0 comments on commit 65f401f

Please sign in to comment.