Displaying 10 results from an estimated 10 matches for "t_begin".
2011 Jan 06
1
[PATCH] close client socket after closing response body
...e_error(client, e)
end
diff --git a/t/t0018-write-on-close.sh b/t/t0018-write-on-close.sh
new file mode 100755
index 0000000..3afefea
--- /dev/null
+++ b/t/t0018-write-on-close.sh
@@ -0,0 +1,23 @@
+#!/bin/sh
+. ./test-lib.sh
+t_plan 4 "write-on-close tests for funky response-bodies"
+
+t_begin "setup and start" && {
+ unicorn_setup
+ unicorn -D -c $unicorn_config write-on-close.ru
+ unicorn_wait_start
+}
+
+t_begin "write-on-close response body succeeds" && {
+ test xGoodbye = x"$(curl -sSf http://$listen/)"
+}
+
+t_begin "killing succee...
2011 Mar 25
1
Ignored proxy_maybe var and no local login when "host = Proxy FQDN"
...ort=", 5) == 0)
port = *tmp + 5;
if (strncmp(*tmp, "destuser=", 9) == 0)
destuser = *tmp + 9;
}
if (host == NULL || net_addr2ip(host, &ip) < 0) {
/* broken setup */
T_BEGIN {
i_debug("BROKEN SETUP %s", host);
} T_END;
return FALSE;
}
if (!net_ip_compare(&ip, &request->local_ip)){
T_BEGIN {
i_debug("%s", "IPS NOT EQUAL");...
2009 Nov 02
2
dovecot-1.2.6: Panic: pool_data_stack_realloc(): stack frame changed
When playing with large numbers of IMAP keywords on dovecot-1.2.6 imap
crashed:
Panic: pool_data_stack_realloc(): stack frame changed
Looks like either maildir_file_do() shouldn't T_BEGIN/T_END or the
keywords array should start larger.
0 libSystem.B.dylib 0x00007fff875f4eba __kill + 10
1 libSystem.B.dylib 0x00007fff875f4eac kill + 14
2 libSystem.B.dylib 0x00007fff87683519 raise + 25
3 libSystem.B.dylib 0x00007fff876a4e1...
2009 Aug 09
1
Wiki entry for expire plugin, PostgreSQL trigger needs update
...AG_RECURSE |
DICT_ITERATE_FLAG_SORT_BY_VALUE);
/* We'll get the oldest values (timestamps) first */
while (dict_iterate(iter, &key, &value) > 0) {
/* key = DICT_EXPIRE_PREFIX<user>/<mailbox> */
userp = key + strlen(DICT_EXPIRE_PREFIX);
[...]
T_BEGIN {
username = t_strdup_until(userp, p);
If this code does somehow iterate usernames which are not present in
the dict, I apologize.
Cheers
Stefan
2008 Oct 27
1
Empty/corrupt mail leads to duplicate delivery
...XPIRE_CONTEXT(t);
+ struct mailbox *box = t->box;
time_t new_stamp;
bool update_dict = FALSE;
int ret;
@@ -117,13 +118,14 @@ expire_mailbox_transaction_commit(struct
i_free(xt);
return -1;
}
+ /* transaction is freed now */
+ t = NULL;
if (xt->first_expunged || xt->saves) T_BEGIN {
const char *key, *value;
key = t_strconcat(DICT_PATH_SHARED, expire.username, "/",
- t->box->storage->ns->prefix,
- t->box->name, NULL);
+ box->storage->ns->prefix, box->name, NULL);
if (!xt->first_expunged && xt->sav...
2009 Apr 13
0
How can I skip EOH in headers?
...39;re using MD5 sums to generate POP3 UIDLs.
clients don't like it much if there are duplicates,
so make sure that there can't be any by appending
our own X-Delivery-ID header. */
const char *hdr;
T_BEGIN {
mbox_save_x_delivery_id(ctx);
} T_END;
hdr = ctx->x_delivery_id_header;
streams[0] = i_stream_create_from_data(hdr,
strlen(hdr));
streams[1] = filter;
streams[2] = NULL;...
2020 Oct 15
2
how to set smtp-client -> submission_relay_host for IPv4 only?
On 10/15/20 2:02 PM, jeremy ardley wrote:
>> how/where do I configure (just) the dovecot smtp-client -> submission_relay_host to only connect IPv4?
>
> It appears your host has A and AAAA records in your DNS. The clients will try IPV6 first if they see an AAAA record.
>
> If you don't need IPV6 for your host remove the AAAA record. All connections will then only use
2010 Jun 29
1
NFS(4) IMAP Quota
...t->gid),
@@ -761,7 +778,7 @@
bytes = strcasecmp(name, QUOTA_NAME_STORAGE_BYTES) == 0;
#ifdef HAVE_RQUOTA
- if (strcmp(root->mount->type, "nfs") == 0) {
+ if (strcmp(root->mount->type, "nfs") == 0 || strcmp(root->mount->type,
"nfs4") == 0) {
T_BEGIN {
ret = !root->user_disabled ?
do_rquota_user(root, bytes, value_r, &limit) :
2015 Oct 06
4
More information about - Dovecot 2.2.x quota mysql and dict
...v_inc_map != NULL)
sql_dict_prev_inc_flush(ctx);
map = sql_dict_find_map(dict, key, &values);
if (map == NULL) {
i_error("sql dict unset: Invalid/unmapped key: %s", key);
ctx->failed = TRUE;
return;
}
T_BEGIN {
string_t *query = t_str_new(256);
const char *error;
str_printfa(query, "DELETE FROM %s", map->table); #### here
deleted all information about domain, this code i think need change
if (sql_dict_where_build(dict, map, &val...
2010 Apr 14
4
PostgreSQL driver supporting [round-robin] load balancing and redundancy [LONG]
.../*** user_query */
+struct multi_pgsql_user_query {
+ struct multi_pgsql_simple_query super;
+
+ sql_query_callback_t *cb;
+ void *ctx;
+};
+
+static void abort_user_query(struct multi_pgsql_query *q,
+ struct sql_result *r)
+{
+ struct multi_pgsql_user_query *qry;
+
+ qry = (void *)q;
+
+ T_BEGIN {
+ qry->cb(r, qry->ctx);
+ } T_END;
+}
+
+static void user_query_result(struct multi_pgsql_query *q,
+ struct multi_pgsql_pgc *pgc,
+ PGresult **pgr)
+{
+ struct multi_pgsql_result result;
+ struct multi_pgsql_user_query *qry;
+
+ qry = (void *)q;
+ init_multi_pgsql_result(&...