Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2009, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.1054 2009/12/02 00:53:31 jonasw Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.1055 2010/01/27 16:46:45 mast Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:6944:    {    destruct( fd );    opened = 0;    }       array(string) write_buf = ({});    protected void do_the_write( )    {    if( !opened ) do_open();    if( !opened ) return 0; -  fd->write( write_buf ); +  if (mixed err = catch (fd->write( write_buf ))) { +  catch { +  foreach (write_buf, string str) +  if (String.width (str) > 8) +  werror ("Got wide string in log output: %O\n", str); +  }; +  throw (err); +  }    write_buf = ({});    remove_call_out( do_close );    call_out( do_close, 10.0 );    }       int write( string what )    {    if( !sizeof( write_buf ) )    call_out( do_the_write, 1 );    write_buf += ({what});    return strlen(what);    }   }