<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Issue 152 in memcached: CLIENT_ERROR not sent when fetching valid key with data + invalid key</title>
        <description> Status: New
Owner: ----
Labels: Type-Defect Priority-Medium

New issue 152 by pteromys: CLIENT_ERROR not sent when fetching valid key  
with data + invalid key
http://code.google.com/p/memcached/issues/detail?id=152

What steps will reproduce the problem?
1. set x 0 0 1
2. get x [some 251-character key]

What is the expected output? What do you see instead?
I expect to see CLIENT_ERROR or END, or some other indication that the  
response from the server is over. (I believe CLIENT_ERROR would be most  
correct.) Instead I get a response for the first item and nothing else:
VALUE x 0 1
1

What version of the product are you using? On what operating system?
1.4.5 on Arch Linux

Please provide any additional information below.
The first key passed to &amp;quot;get&amp;quot; should be a valid key under which there is  
data stored, and the second key just needs to be invalid (that is, longer  
than 250 characters). I can confirm that CLIENT_ERROR does get sent as  
expected if there is no data under the first key, or if the 251-character  
key is requested on its own.</description>
        <link>http://www.serverphorums.com/read.php?9,192926,192926#msg-192926</link>
        <lastBuildDate>Sat, 18 May 2013 23:07:06 +0200</lastBuildDate>
        <generator>Phorum 5.2.18</generator>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,192926,200323#msg-200323</guid>
            <title>Re: Issue 152 in memcached: CLIENT_ERROR not sent when fetching valid key with data + invalid key</title>
            <link>http://www.serverphorums.com/read.php?9,192926,200323#msg-200323</link>
            <description><![CDATA[ Updates:<br />
	Status: Fixed<br />
<br />
Comment #2 on issue 152 by trond.norbye: CLIENT_ERROR not sent when  <br />
fetching valid key with data + invalid key<br />
<a href="http://code.google.com/p/memcached/issues/detail?id=152" target="_blank"  rel="nofollow">http://code.google.com/p/memcached/issues/detail?id=152</a><br />
<br />
(No comment was entered for this change.)]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Memcached</category>
            <pubDate>Tue, 14 Sep 2010 09:20:40 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,192926,193116#msg-193116</guid>
            <title>Re: Issue 152 in memcached: CLIENT_ERROR not sent when fetching valid key with data + invalid key</title>
            <link>http://www.serverphorums.com/read.php?9,192926,193116#msg-193116</link>
            <description><![CDATA[ Updates:<br />
	Status: Started<br />
	Owner: trond.norbye<br />
<br />
Comment #1 on issue 152 by trond.norbye: CLIENT_ERROR not sent when  <br />
fetching valid key with data + invalid key<br />
<a href="http://code.google.com/p/memcached/issues/detail?id=152" target="_blank"  rel="nofollow">http://code.google.com/p/memcached/issues/detail?id=152</a><br />
<br />
I pushed a patch for this to  <br />
<a href="http://github.com/trondn/memcached/commit/31c7156735c15ffa1c47268fb2513b4ee6240f01" target="_blank"  rel="nofollow">http://github.com/trondn/memcached/commit/31c7156735c15ffa1c47268fb2513b4ee6240f01</a><br />
<br />
The problem is that we're trying to add a text part to the output with  <br />
out_string, but this doesn't work due to the logic in conn_write. The  <br />
easiest fix for this bug is to nuke all of the output we generated and send  <br />
the error message instead. Trying to &quot;append&quot; the error message could make  <br />
the resulting text unparsable for the client if we had a partial message  <br />
built up..]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Memcached</category>
            <pubDate>Mon, 30 Aug 2010 10:30:11 +0200</pubDate>
        </item>
        <item>
            <guid>http://www.serverphorums.com/read.php?9,192926,192926#msg-192926</guid>
            <title>Issue 152 in memcached: CLIENT_ERROR not sent when fetching valid key with data + invalid key</title>
            <link>http://www.serverphorums.com/read.php?9,192926,192926#msg-192926</link>
            <description><![CDATA[ Status: New<br />
Owner: ----<br />
Labels: Type-Defect Priority-Medium<br />
<br />
New issue 152 by pteromys: CLIENT_ERROR not sent when fetching valid key  <br />
with data + invalid key<br />
<a href="http://code.google.com/p/memcached/issues/detail?id=152" target="_blank"  rel="nofollow">http://code.google.com/p/memcached/issues/detail?id=152</a><br />
<br />
What steps will reproduce the problem?<br />
1. set x 0 0 1<br />
2. get x [some 251-character key]<br />
<br />
What is the expected output? What do you see instead?<br />
I expect to see CLIENT_ERROR or END, or some other indication that the  <br />
response from the server is over. (I believe CLIENT_ERROR would be most  <br />
correct.) Instead I get a response for the first item and nothing else:<br />
VALUE x 0 1<br />
1<br />
<br />
What version of the product are you using? On what operating system?<br />
1.4.5 on Arch Linux<br />
<br />
Please provide any additional information below.<br />
The first key passed to &quot;get&quot; should be a valid key under which there is  <br />
data stored, and the second key just needs to be invalid (that is, longer  <br />
than 250 characters). I can confirm that CLIENT_ERROR does get sent as  <br />
expected if there is no data under the first key, or if the 251-character  <br />
key is requested on its own.]]></description>
            <dc:creator>Anonymous User</dc:creator>
            <category>Memcached</category>
            <pubDate>Mon, 30 Aug 2010 00:30:44 +0200</pubDate>
        </item>
    </channel>
</rss>
