{
*key_length= 0;
- for (; isalnum(*string_ptr); string_ptr++)
+ for (; isgraph(*string_ptr); string_ptr++)
{
*key= *string_ptr;
key++;
}
}
else /* Skip characters */
- for (; isalnum(*string_ptr); string_ptr++);
+ for (; isgraph(*string_ptr); string_ptr++);
if (end_ptr == string_ptr)
goto read_error;
memcached_string_st *result_buffer;
result_buffer= &ptr->result_buffer;
+ if (ptr->flags & MEM_NO_BLOCK)
+ memcached_io_preread(ptr);
+
while (ptr->cursor_server < ptr->number_of_hosts)
{
if (!ptr->hosts[ptr->cursor_server].cursor_active)
WATCHPOINT_ASSERT(result->value.is_allocated != MEMCACHED_USED);
+ if (ptr->flags & MEM_NO_BLOCK)
+ memcached_io_preread(ptr);
+
while (ptr->cursor_server < ptr->number_of_hosts)
{
if (!ptr->hosts[ptr->cursor_server].cursor_active)
return NULL;
}
- /* An error has occurred */
+ /* We have completed reading data */
if (result->is_allocated == MEMCACHED_ALLOCATED)
memcached_result_free(result);
else