Changeset 21000

Show
Ignore:
Timestamp:
01/12/08 13:19:13 (8 months ago)
Author:
patrick
Message:

Fixed a logic error. NSPR sockets do not have a corking interface, but the
configure script may still detect that the OS supports it. When using NSPR,
we have to go through the userland corking on all platforms.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • juggler/trunk/modules/vapor/vpr/IO/Socket/SocketStreamOpt.cpp

    r20997 r21000  
    6767void SocketStreamOpt::setNoPush(const bool enableVal) 
    6868{ 
    69 #if defined(HAVE_CORKABLE_TCP) 
     69// NSPR sockets are not corkable, but the OS may still support TCP corking. 
     70#if defined(HAVE_CORKABLE_TCP) && VPR_IO_DOMAIN_INCLUDE != VPR_DOMAIN_NSPR 
    7071   vpr::SocketOptions::Data option; 
    7172   option.no_push = enableVal;