Searched refs:len (Results 1 – 12 of 12) sorted by relevance
| /memcached-1.4.29/t/ |
| H A D | chunked-items.t | 55 my $len = 1024 * 200; 56 while ($len < 1024 * 1024) { 57 my $val = "B" x $len; 58 print $sock "set foo_$len 0 0 $len\r\n$val\r\n"; 60 $len += 2048; 68 my $len = length($str); 76 my $len = length($todo); 87 $len = length($str); 97 my $len = length($str); 105 my $len = length($part); [all …]
|
| H A D | getset.t | 83 my $len = 1024; 84 while ($len < 1024*1028) { 85 my $val = "B"x$len; 86 if ($len > (1024*1024)) { 88 print $sock "set foo_$len 0 0 3\r\nMOO\r\n"; 90 print $sock "set foo_$len 0 0 $len\r\n$val\r\n"; 91 … is(scalar <$sock>, "SERVER_ERROR object too large for cache\r\n", "failed to store size $len"); 92 mem_get_is($sock, "foo_$len"); 94 print $sock "set foo_$len 0 0 $len\r\n$val\r\n"; 95 is(scalar <$sock>, "STORED\r\n", "stored size $len"); [all …]
|
| H A D | lru.t | 22 my $len = length($too_big); 23 print $sock "set too_big 0 0 $len\r\n$too_big\r\n"; 27 my $len = length($big); 28 print $sock "set big 0 0 $len\r\n$big\r\n"; 38 print $sock "set item_$i 0 0 $len\r\n$big\r\n";
|
| H A D | binary-get.t | 16 my $len = length($blob); 17 print "len is $len\n"; 18 print $sock "set $key 0 0 $len\r\n$blob\r\n";
|
| H A D | issue_260.t | 29 my $len = length($big); 30 print $sock "set big 0 0 $len\r\n$big\r\n"; 40 print $sock "set item_$i 0 0 $len\r\n$big\r\n";
|
| /memcached-1.4.29/ |
| H A D | testapp.c | 533 } while (offset < len); in send_ascii_command() 706 } while (offset < len); in safe_send() 710 if (len == 0) { in safe_recv() 728 } while (offset < len); in safe_recv() 746 ptr += len; in safe_recv_packet() 1298 len = 0; in test_binary_get_impl() 1309 len += l; in test_binary_get_impl() 1362 len += len2; in test_binary_getq_impl() 1368 len += len2; in test_binary_getq_impl() 1732 size_t len; in test_binary_pipeline_hickup_chunk() local [all …]
|
| H A D | bipbuffer.h | 55 unsigned char *bipbuf_peek(const bipbuf_t* me, const unsigned int len); 62 unsigned char *bipbuf_peek_all(const bipbuf_t* me, unsigned int *len);
|
| H A D | memcached.c | 877 len = leftover; in add_iov() 887 int todo = (len > ch->used) ? ch->used : len; in add_chunked_item_iovs() 892 len -= todo; in add_chunked_item_iovs() 944 size_t len; in out_string() local 965 len = strlen(str); in out_string() 974 c->wbytes = len + 2; in out_string() 1174 size_t len; in write_bin_error() local 1218 if (len > 0) { in write_bin_error() 1690 int len; in process_bin_stat() local 2801 int len; in process_stats_detail() local [all …]
|
| H A D | slabs.c | 220 int len = settings.slab_reassign ? settings.item_size_max in do_slabs_newslab() local 224 if ((mem_limit && mem_malloced + len > mem_limit && p->slabs > 0 in do_slabs_newslab() 233 ((ptr = memory_allocate((size_t)len)) == 0))) { in do_slabs_newslab() 239 memset(ptr, 0, (size_t)len); in do_slabs_newslab()
|
| H A D | items.c | 475 unsigned int len; in item_cachedump() local 501 len = snprintf(temp, sizeof(temp), "ITEM %s [%d b; %lu s]\r\n", in item_cachedump() 505 if (bufcurr + len + 6 > memlimit) /* 6 is END\r\n\0 */ in item_cachedump() 507 memcpy(buffer + bufcurr, temp, len); in item_cachedump() 508 bufcurr += len; in item_cachedump()
|
| /memcached-1.4.29/t/lib/ |
| H A D | MemcachedTest.pm | 55 my $len = length($val); 57 my $expected = "VALUE $key $expect_flags $len\r\n$val\r\nEND\r\n"; 84 my $len = $3; 86 read $sock, $val , $len; 113 my $len = length($val); 115 my $expected = "VALUE $key $expect_flags $len $identifier\r\n$val\r\nEND\r\n";
|
| /memcached-1.4.29/scripts/ |
| H A D | memcached-tool | 114 my $len = $3; 116 read $sock, $val, $len; 117 print "add $k $flags $keyexp{$k} $len\r\n$val\r\n";
|