View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001542 | SOGo | Backend General | public | 2011-12-13 15:57 | 2011-12-30 15:03 |
| Reporter | dani | Assigned To | ludovic | ||
| Priority | normal | Severity | minor | Reproducibility | have not tried |
| Status | closed | Resolution | fixed | ||
| Fixed in Version | 1.3.12 | ||||
| Summary | 0001542: memcached over unix socket | ||||
| Description | It would be great to be able to connect to memcached over a UNIX socket, as SOGo and memcached often run on the same host, it would provide a better security (as we can easily restrict who can access memcached unix socket with standard permissions). I attach a patch, I've not tested it, but I think something like this should do the trick | ||||
| Tags | No tags attached. | ||||
|
2011-12-13 15:57
|
SOGo-memcached_unix.patch (745 bytes)
diff -Nur -x '*.orig' -x '*.rej' SOGo-1.3.8b/SoObjects/SOGo/SOGoCache.m mezzanine_patched_SOGo-1.3.8b/SoObjects/SOGo/SOGoCache.m
--- SOGo-1.3.8b/SoObjects/SOGo/SOGoCache.m 2011-07-26 18:29:10.000000000 +0200
+++ mezzanine_patched_SOGo-1.3.8b/SoObjects/SOGo/SOGoCache.m 2011-09-01 13:06:29.000000000 +0200
@@ -127,7 +127,10 @@
servers
= memcached_servers_parse([memcachedServerName UTF8String]);
- memcached_server_push(handle, servers);
+ if ([memcachedServerName hasPrefix:@"/"])
+ memcached_server_add_unix_socket(handle, memcachedServerName);
+ else
+ memcached_server_push(handle, servers);
}
}
}
|
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2011-12-13 15:57 | dani | New Issue | |
| 2011-12-13 15:57 | dani | File Added: SOGo-memcached_unix.patch | |
| 2011-12-30 15:03 | ludovic | Note Added: 0003220 | |
| 2011-12-30 15:03 | ludovic | Status | new => resolved |
| 2011-12-30 15:03 | ludovic | Fixed in Version | => 1.3.12 |
| 2011-12-30 15:03 | ludovic | Resolution | open => fixed |
| 2011-12-30 15:03 | ludovic | Assigned To | => ludovic |
| 2011-12-30 15:03 | ludovic | Status | resolved => closed |