search for: io_loop_create

Displaying 7 results from an estimated 7 matches for "io_loop_create".

2017 Aug 03
2
proxy-dict with tcp connection
...ath); + if (port > 0) { + connection_init_client_ip(dict_connections, &dict->conn.conn, &ip, port); + } else { + connection_init_client_unix(dict_connections, &dict->conn.conn, path); + } dict->uri = i_strdup(dest_uri + 1); dict->ioloop = io_loop_create(); But unfortunately this crashes: Jul 28 13:20:04 auth: Error: auth worker: Aborted PASSL request for info at outdoor-training.de: Worker process died unexpectedly Jul 28 13:20:04 auth-worker(705): Fatal: master: service(auth-worker): child 705 killed with signal 11 (core dumped) Jul 28 13:20:04...
2017 Aug 03
0
proxy-dict with tcp connection
...onnection_init_client_ip(dict_connections, &dict->conn.conn, > &ip, port); > + } else { > + connection_init_client_unix(dict_connections, &dict->conn.conn, > path); > + } > dict->uri = i_strdup(dest_uri + 1); > > dict->ioloop = io_loop_create(); > > But unfortunately this crashes: > > Jul 28 13:20:04 auth: Error: auth worker: Aborted PASSL request for > info at outdoor-training.de: Worker process died unexpectedly > Jul 28 13:20:04 auth-worker(705): Fatal: master: service(auth-worker): > child 705 killed with sign...
2008 Jul 31
4
syslog with PID
Hi, LOG_NDELAY is the only option for openlog() in dovecot 1.1.2. Wouldn't be LOG_NDELAY|LOG_PID as option parameter much more useful? Without logging the pid, it is impossible to match 'Disconnected' log entries and the corresponding session start/login. Therefore I suggest to use LOG_NDELAY|LOG_PID in the options of i_set_failure_syslog() at all 6 occurrences which passes it
2006 Jun 22
1
Patch for rawlog.c
...stat() failed for %s: %m", path); + i_warning("lstat() failed for %s: %m", RAWLOG_DIRNAME); return; } if (!S_ISDIR(st.st_mode)) @@ -305,7 +300,7 @@ dec2str(getppid()))); ioloop = io_loop_create(system_pool); - rawlog_proxy_create(0, 1, sfd[0], path, write_timestamps); + rawlog_proxy_create(0, 1, sfd[0], RAWLOG_DIRNAME, write_timestamps); io_loop_run(ioloop); io_loop_destroy(&ioloop); ---- snap -- Andreas Schulze DATEV eG, Paumgartner Strasse 6-14,...
2004 Aug 25
0
[PATCH] move highest_fd calculations to ioloop-select.c
...* notify the real I/O handler */ io_loop_handle_remove(current_ioloop, io); io->destroyed = TRUE; - /* check if we removed the highest fd */ - if (io->fd == current_ioloop->highest_fd) - update_highest_fd(current_ioloop); - io->fd = -1; } @@ -275,7 +248,6 @@ struct ioloop *io_loop_create(pool_t poo ioloop = p_new(pool, struct ioloop, 1); pool_ref(pool); ioloop->pool = pool; - ioloop->highest_fd = -1; io_loop_handler_init(ioloop); diff -urpNX /usr/share/dontdiff -x Makefile dovecot-1.0-test35.vanilla/src/lib/ioloop-select.c dovecot-1.0-test35/src/lib/ioloop-...
2006 Apr 28
1
imaptest, with options!
I hacked some command line options into imaptest. I dont think I broke it.. Place into dovecot-source root as usual and compile with: gcc imaptest.c -o imaptest -Wall -W -I. -Isrc/lib -DHAVE_CONFIG_H src/lib/liblib.a As per Timo's instructions. # imaptest -h imaptest [USER at IP:PORTNO] [pass=PASSWORD] [mbox=MBOX] [clients=CC] [msgs=NMSG] [use_authenticate] [PORTNO] USER = template for
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
...db)); + queue_query_to_pgdb(qry, pgdb); +} + + +static void pgdb_sync_query(struct multi_pgsql_db *pgdb, + struct multi_pgsql_query *qry) +{ + struct ioloop *old_ioloop, *sync_ioloop; + + dprintf(("%s: %p: %p", __func__, pgdb, qry)); + + old_ioloop = current_ioloop; + sync_ioloop = io_loop_create(); + switch_pgdb_pgcs(pgdb); + + set_query_sync_ioloop(qry, sync_ioloop); + pgdb_async_query(pgdb, qry); + + io_loop_run(sync_ioloop); + + io_loop_set_current(old_ioloop); + switch_pgdb_pgcs(pgdb); + io_loop_set_current(sync_ioloop); + io_loop_destroy(&sync_ioloop); +} + +/*** non-transaction...