We are using nonblocking mode to connect to memcached. All of our operation needs to be asynchronized. If I do nonblocking tcp, is there a similiar field to UDP header, which I can fill in get command, and carried back by memcached return packet?
Thanks! Dongni ----- Original Message ---- From: Tomash Brechko <[EMAIL PROTECTED]> To: [email protected] Sent: Sunday, May 4, 2008 12:09:26 AM Subject: Re: memcached udp datagram size and noreply option support On Sun, May 04, 2008 at 01:50:26 +0100, Erik Ljungstrom wrote: > The MTU is normally set on your network interfaces (and possibly > subsequent network devices depending on your setup) rather than in > individual applications. How you do it obviously depends on what OS > you're running. On Linux, *BSD and Solaris you'd typically do: > ifconfig [interface] mtu [value] where value is the maximum number of > bytes which can be sent in one go through that interface. So the > default 1500 means that packets will be fragmented if they exceed 1500 > bytes. Later I recalled that the MTU value is hardcoded into memcached source. This is because memcached has to output an UDP header, and thus has to know how big the packet is. I don't have the source at hand now, grep something like '\b14[0-9][0-9]\b'. I.e., you'll have to change that value too... -- Tomash Brechko ____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
