From: Thomas Hurst Date: 2001-12-26T09:57:12+09:00 Subject: [ruby-talk:29427] Re: Surprise (?) with sockets * Massimiliano Mirra (list@chromatic-harp.com) wrote: > On Wed, Dec 26, 2001 at 05:20:58AM +0900, Thomas Hurst wrote: > > > > You saved my mental sanity. Not too bad for a Xmas gift. ;-) If you need more assistance in this area, I have some spare prozac in the cupboard ;) > man 7 tcp and socket.setsockopt(Socket::SOL_TCP, Socket::TCP_NODELAY, > 1) did the trick. I looked in the code and found SOL_TCP was defined optionally, but IPPROTO_TCP was set to the system define if it's there and hardcoded if not. > Thanks! And look, there's a bug in my fortune datafile. This, on top of two bugs in /.'s comment system, this misfeature in ruby, and the entry in Programming Ruby that mentions SOL_TCP but not IPPROTO_TCP, all found in the past 24 hours, and I've not even been IN most of the day. I'm obviously being punished for daring to leave the house ;) Oh, and the Windows box I'm editing this from bluescreened before I managed to save this. *hugs* vim .swp files. -- Thomas 'Freaky' Hurst - freaky@aagh.net - http://www.aagh.net/ - People to whom you are attracted invariably thing you remind them of someone else.