search for: evfilt_read

Displaying 9 results from an estimated 9 matches for "evfilt_read".

2018 Oct 24
0
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
kevent(10,0x0,0,{ 7,EVFILT_READ,0x0,0x0,0x1,0x4207a140 },4,{ 2147483.000000000 }) = 1 (0x1) accept(7,{ AF_UNIX \"\" },0x7fffffffe7fc) = 11 (0xb) getsockname(11,{ AF_UNIX \"/var/run/dovecot/imap-hibe\" },0x7fffffffe7fc) = 0 (0x0) fcntl(11,F_GETFL,) = 6 (0x6) fcntl(11,F_S...
2018 Oct 24
2
imap-hibernate returned failure: Failed to parse client input: Invalid peer_dev_minor value
Nothing, the same error Oct 24 10:11:16 server dovecot: imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: kevent(-1) for notify remove failed: Bad file descriptor Oct 24 10:11:16 server dovecot: imap(email at example.com)<82402><Nhu9MPR4KuaASO/q>: Error: close(-1) for notify remove failed: Bad file descriptor Oct 24 10:11:16 server dovecot: imap-hibernate:
2003 Apr 16
1
PATCH Add support for kqueue in ioloop subsystem
...einit(struct ioloop *ioloop) { p_free(ioloop->pool, ioloop->handler_data); } void io_loop_handle_add(struct ioloop *ioloop, int fd, int condition) { short filter; struct ioloop_handler_data *data = ioloop->handler_data; i_assert(fd >= 0); if (condition & IO_READ) filter |= EVFILT_READ; if (condition & IO_WRITE) filter |= EVFILT_WRITE; EV_SET(&data->event, fd, filter, EV_ADD, 0, 0, NULL); if (kevent(data->kq, &data->event, 1, NULL, 0, NULL) < 0) { i_warning("couldn't add filter with kqueue: %m"); } } void io_loop_handle_remove(struc...
2004 Oct 25
0
[PATCH] Request for testing: BSD kqueue ioloop handler
...p_realloc(ioloop->pool, data->events, + sizeof(int) * old_size, + sizeof(int) * data->events_size); + } + data->events_pos++; + + iolist_add(list, io); + + event = data->events + data->events_changed; + data->events_changed++; + + EV_SET(event, fd, iolist_events(list, EVFILT_READ, EVFILT_WRITE), + EV_ADD | EV_EOF, 0, 0, io); +} + +void io_loop_handle_remove(struct ioloop *ioloop, struct io *io) +{ + struct ioloop_handler_data *data = ioloop->handler_data; + struct io_list *list = data->fd_index[io->fd]; + struct kevent *event; + int i, changed = data->events_ch...
2005 Dec 14
2
Patch: ioloop using kqueue/kevent for FreeBSD
...e); + memset(ctx->fds + old_size, 0, + sizeof(struct fdrecord) * (ctx->fds_size - old_size)); + } + + if (condition & (IO_READ | IO_ERROR)) + { + ctx->fds[io->fd].mode |= condition; + ev.filter = EVFILT_READ; + kevent(ctx->kq, &ev, 1, NULL, 0, NULL); + } + if (condition & (IO_WRITE | IO_ERROR)) + { + ctx->fds[io->fd].mode |= condition; + ev.filter = EVFILT_WRITE; + kevent(ctx->kq, &ev, 1, NULL, 0, N...
2003 Aug 19
1
kqueue freezing 5.1R on kevent call
...; 0 ) { perror( "bind" ); exit( 1 ); } if( listen( sock, 32 ) < 0 ) { perror( "listen" ); exit( 1 ); } /* Must add the socket to the kqueue for it to crash */ events[ 0 ].ident = sock; events[ 0 ].udata = 0; events[ 0 ].filter = EVFILT_READ; events[ 0 ].flags = EV_ADD; ktime.tv_sec = 1; ktime.tv_nsec = 0; /* CRASHES HERE ITSELF */ i = kevent( queue, events, 1, events, 10, &ktime ); printf( "kevent() returned %d\n", i ); printf( "Closing socket\n" ); /* CRASH!!! Must be a shutdown()...
2007 Oct 27
2
dovecot 1.1b4 not listing public folder children
...jbossadmin" * LIST (\HasNoChildren) "/" "#shared/decs/unixadmin" truss shows: (null)() = 0 (0x0) gettimeofday({1193511545.540129},0x5b7f00) = 0 (0x0) gettimeofday({1193511545.540216},0x0) = 0 (0x0) kevent(6,{},0,{0x0,EVFILT_READ,0x0,0,0x1c,0x5b83c0},3,{9.999784000}) = 1 (0x1) gettimeofday({1193511551.475630},0x5b7f00) = 0 (0x0) break(0x5d0000) = 0 (0x0) read(0,"9 LIST "" "#shared/decs/%"\r\n",4096) = 28 (0x1c) break(0x5d3000)...
2012 Aug 01
1
Erroneous operation not permitted when deleting mailbox with mdbox
...g. However the mailbox does appear to be deleted fine, so it appears to be an erroneous error. Here is the truss output from the "3 DELETE INBOX.Spam" IMAP command: gettimeofday({1343808204.962165 },0x0) = 0 (0x0) gettimeofday({1343808204.962351 },0x0) = 0 (0x0) kevent(9,0x0,0,{0xb,EVFILT_READ,0x0,0,0x15,0x21c17a40},6,{1786.679649000 }) = 1 (0x1) gettimeofday({1343808216.031493 },0x0) = 0 (0x0) gettimeofday({1343808216.031676 },0x0) = 0 (0x0) read(11,"3 DELETE INBOX.Spam\r\n",8179) = 21 (0x15) getpid() = 6293 (0x1895) __sysctl(0x7fffffffd850,0x4,0x0,0x0,0x21c8f000,0x...
2016 Jul 04
3
kqueue crash on FreeBSD with 2.2.25
On 16-07-03 03:30:36, Timo Sirainen wrote: > On 02 Jul 2016, at 03:30, Adam Weinberger <adamw at adamw.org> wrote: > > > >>> Jul 1 10:07:27 imap dovecot: master: Panic: kevent(EV_ADD, READ, 54) failed: Bad file descriptor > >>> > >>> It's not dumping core, and I get the message even with "protocols =" > >>> >