~yolanda.robla/ubuntu/trusty/memcached/add_distribution

« back to all changes in this revision

Viewing changes to t/udp.t

  • Committer: Bazaar Package Importer
  • Author(s): David Martínez Moreno
  • Date: 2010-05-12 11:41:22 UTC
  • mfrom: (1.1.7 upstream) (3.3.3 squeeze)
  • Revision ID: james.westby@ubuntu.com-20100512114122-e2dphwiezevuny1t
Tags: 1.4.5-1
* New upstream release.  Main changes since 1.4.2 are:
  New features:
  - Support for SASL authentication.
  - New script damemtop - a memcached top.
  - Slab optimizations.
  - New stats, for reclaimed memory and SASL events.
  Bugs fixed:
  - Malicious input can crash server (CVE-2010-1152).  Closes: #579913.
  - Fixed several problems with slab handling and growth.
  - Provide better error reporting.
  - Fix get stats accounting.
  - Fixed backwards compatibility with delete 0.
  - Documentation fixes.
  - Various build fixes, among others, fixed FTBFS with gcc-4.5 (closes:
    #565033).
* Refreshed and renamed 01_init_script_compliant_with_LSB.patch.
* Fixed lintian warnings by adding $remote_fs to init.d script.
* Removed non-existent document (doc/memory_management.txt).
* debian/control: Bumped Standards-Version to 3.8.4 (no changes).

Show diffs side-by-side

added added

removed removed

Lines of Context:
57
57
    udp_get_test($prot,45,"404$prot","1",::ENTRY_MISSING);
58
58
    udp_incr_decr_test($prot,45,"aval$prot","1","incr",1);
59
59
    udp_incr_decr_test($prot,45,"aval$prot","1","decr",2);
60
 
    udp_delete_test($prot,45,"aval$prot","0");
 
60
    udp_delete_test($prot,45,"aval$prot");
61
61
}
62
62
 
63
63
sub udp_set_test {
123
123
}
124
124
 
125
125
sub udp_delete_test {
126
 
    my ($protocol, $req_id, $key, $time) = @_;
 
126
    my ($protocol, $req_id, $key) = @_;
127
127
    my $req = "";
128
128
    my $key_len = length($key);
129
129
 
130
130
    if ($protocol == ::IS_ASCII) {
131
 
        $req = "delete $key $time\r\n";
 
131
        $req = "delete $key\r\n";
132
132
    } elsif ($protocol == ::IS_BINARY) {
133
133
        $req = pack(::REQ_PKT_FMT, ::BIN_REQ_MAGIC, ::CMD_DELETE, $key_len, 0, 0, 0, $key_len, 0, 0, 0);
134
134
        $req .= $key;