diff options
author | Eric Wong <normalperson@yhbt.net> | 2013-06-20 01:51:09 +0000 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2013-06-20 02:38:07 +0000 |
commit | 16e31f8dce64323fdef6151a30756ce2bc770a88 (patch) | |
tree | 9dd368a9b0e0cd80283652e5477b6fc1ab0e9722 /cmogstored.h | |
parent | 91cb86eb03d828bda8a4ac9cd0c3edbac73418af (diff) | |
download | cmogstored-wip-1.3.tar.gz |
Simply releasing the descriptor triggering ENOSPC/ENOMEM errors from epoll_ctl and kevent is not good enough, as those descriptors may have other descriptors (e.g. files to be served) hanging off of them.
Diffstat (limited to 'cmogstored.h')
-rw-r--r-- | cmogstored.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/cmogstored.h b/cmogstored.h index c9e1f46..9a84a57 100644 --- a/cmogstored.h +++ b/cmogstored.h @@ -432,6 +432,7 @@ void mog_mgmt_post_accept(int fd, struct mog_svc *, union mog_sockaddr *, socklen_t); enum mog_next mog_mgmt_queue_step(struct mog_fd *) MOG_CHECK; void mog_mgmt_quit_step(struct mog_fd *); +void mog_mgmt_drop(struct mog_fd *); /* queue_epoll.c */ struct mog_queue * mog_queue_new(void); @@ -498,6 +499,8 @@ enum mog_next mog_http_queue_step(struct mog_fd *) MOG_CHECK; void mog_http_quit_step(struct mog_fd *); char *mog_http_path(struct mog_http *, char *buf); void mog_http_reset(struct mog_http *); +void mog_http_unlink_ftmp(struct mog_http *); +void mog_http_drop(struct mog_fd *); /* http_dav.c */ void mog_http_delete(struct mog_fd *, char *buf); @@ -529,6 +532,7 @@ int mog_mkpath_for(struct mog_svc *svc, char *path); /* queue_common.c */ struct mog_queue *mog_queue_init(int queue_fd); void mog_queue_stop(struct mog_queue *keep); +void mog_queue_drop(struct mog_fd *); /* fsck_queue.c */ bool mog_fsck_queue_ready(struct mog_fd *mfd) MOG_CHECK; |