Skip to content

Commit

Permalink
Revert "Fix incorrect udp_port bind selection."
Browse files Browse the repository at this point in the history
Patch was incorrect; it wired in some dead code which broke tests.
Starting memcached with -p 11212 -U 0 should disable UDP, but with this patch
-U 0 means "use the tcp port".
  • Loading branch information
dormando committed Jul 12, 2011
1 parent ac93972 commit b8c40b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions memcached.c
Original file line number Diff line number Diff line change
Expand Up @@ -4804,9 +4804,9 @@ int main (int argc, char **argv) {

/* create the UDP listening socket and bind it */
errno = 0;
if (udp_port && server_sockets(udp_port, udp_transport,
if (settings.udpport && server_sockets(settings.udpport, udp_transport,
portnumber_file)) {
vperror("failed to listen on UDP port %d", udp_port);
vperror("failed to listen on UDP port %d", settings.udpport);
exit(EX_OSERR);
}

Expand Down

0 comments on commit b8c40b0

Please sign in to comment.