Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

udp warning message

git-svn-id: http://code.sixapart.com/svn/memcached/trunk/server@407 b0b603af-a30f-0410-a34e-baf09ae79d0b
  • Loading branch information...
commit 3a643851106c7113c4bfc555b45563036c81caee 1 parent cd760ee
@bradfitz bradfitz authored
Showing with 14 additions and 3 deletions.
  1. +11 −0 ChangeLog
  2. +1 −1  configure.ac
  3. +2 −2 memcached.c
View
11 ChangeLog
@@ -1,3 +1,14 @@
+2006-09-20
+
+ * don't listen on UDP by default; more clear message when UDP port in use
+
+2006-09-09
+ * release 1.2.0 (along with 1.1.13, which is the more tested branch)
+
+ nobody has run 1.2.0 in production, to my knowledge. facebook has run
+ their pre-merge-with-trunk version, but bugs were discovered (and fixed)
+ after the merge. there might be more. you've been warned. :)
+
2006-09-04
* improved autoconf libevent detection, from the Tor project.
View
2  configure.ac
@@ -1,5 +1,5 @@
AC_PREREQ(2.52)
-AC_INIT(memcached, 1.2.0-rc1, brad@danga.com)
+AC_INIT(memcached, 1.2.0, brad@danga.com)
AC_CANONICAL_SYSTEM
AC_CONFIG_SRCDIR(memcached.c)
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
View
4 memcached.c
@@ -109,7 +109,7 @@ void stats_reset(void) {
void settings_init(void) {
settings.port = 11211;
- settings.udpport = 11211;
+ settings.udpport = 0;
settings.interface.s_addr = htonl(INADDR_ANY);
settings.maxbytes = 64*1024*1024; /* default is 64MB */
settings.maxconns = 1024; /* to limit connections-related memory to about 5MB */
@@ -2173,7 +2173,7 @@ int main (int argc, char **argv) {
/* create the UDP listening socket and bind it */
u_socket = server_socket(settings.udpport, 1);
if (u_socket == -1) {
- fprintf(stderr, "failed to listen\n");
+ fprintf(stderr, "failed to listen on UDP port %d\n", settings.udpport);
exit(1);
}
}
Please sign in to comment.
Something went wrong with that request. Please try again.