<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -384,10 +384,14 @@ conn *conn_new(const int sfd, enum conn_states init_state,
         } else if (c-&gt;protocol == negotiating_prot) {
             fprintf(stderr, &quot;&lt;%d new auto-negotiating client connection\n&quot;,
                     sfd);
+        } else if (c-&gt;protocol == ascii_prot) {
+            fprintf(stderr, &quot;&lt;%d new ascii client connection.\n&quot;, sfd);
+        } else if (c-&gt;protocol == binary_prot) {
+            fprintf(stderr, &quot;&lt;%d new binary client connection.\n&quot;, sfd);
         } else {
             fprintf(stderr, &quot;&lt;%d new unknown (%d) client connection\n&quot;,
                 sfd, c-&gt;protocol);
-            abort();
+            assert(false);
         }
     }
 </diff>
      <filename>memcached.c</filename>
    </modified>
    <modified>
      <diff>@@ -1,7 +1,7 @@
 #!/usr/bin/perl
 
 use strict;
-use Test::More tests =&gt; 14;
+use Test::More tests =&gt; 17;
 use FindBin qw($Bin);
 use lib &quot;$Bin/lib&quot;;
 use MemcachedTest;
@@ -51,6 +51,24 @@ eval {
 };
 is($@, '', &quot;binary works&quot;);
 
+eval {
+    my $server = new_memcached(&quot;-vv -B auto&quot;);
+};
+is($@, '', &quot;auto works&quot;);
+
+eval {
+    my $server = new_memcached(&quot;-vv -B ascii&quot;);
+};
+is($@, '', &quot;ascii works&quot;);
+
+
+# For the binary test, we just verify it starts since we don't have an easy bin client.
+eval {
+    my $server = new_memcached(&quot;-vv -B binary&quot;);
+};
+is($@, '', &quot;binary works&quot;);
+
+
 # Should blow up with something invalid.
 eval {
     my $server = new_memcached(&quot;-B http&quot;);</diff>
      <filename>t/00-startup.t</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>0a1e88dafc02db59d64366b85441d73a7ddb87a9</id>
    </parent>
  </parents>
  <author>
    <name>Dustin Sallings</name>
    <email>dustin@spy.net</email>
  </author>
  <url>http://github.com/dustin/memcached/commit/c666e344fadbb1460ee0f4a148263b429999a714</url>
  <id>c666e344fadbb1460ee0f4a148263b429999a714</id>
  <committed-date>2009-05-15T07:00:58-07:00</committed-date>
  <authored-date>2009-05-14T15:30:39-07:00</authored-date>
  <message>Don't abort when creating a socket with an unknown binding protocol.

This changes the abort to an assert and tests for such failures.</message>
  <tree>abed10556d23f480e0f7fb3b13b79ba01318815b</tree>
  <committer>
    <name>Trond Norbye</name>
    <email>Trond.Norbye@sun.com</email>
  </committer>
</commit>
