Roxen.git / server / base_server / configuration.pike

version» Context lines:

Roxen.git/server/base_server/configuration.pike:1872:    res += sprintf("%d bytes ", strlen(m->data));    else if (objectp(m->file))    if (catch {    Stat a=m->file->stat();    res += sprintf("%O bytes ", a[1]-m->file->tell());    })    res += "? bytes ";       if (m->data) res += "(static)";    else if (m->file) res += "(open file)"; +  else if (m->upgrade_websocket) res += "(upgrade to websocket)";       if (stringp(m->extra_heads["content-type"]) ||    stringp(m->type)) {    res += sprintf(" of %O", m->type||m->extra_heads["content-type"]);    }       return res;   }      //! Find all applicable locks for this user on @[path].
Roxen.git/server/base_server/configuration.pike:2557:       TIMER_END(location_modules);    return Roxen.http_redirect(new_query, id);    }    }    TIMER_END(location_modules);    }       if(fid == -1)    { +  if (id->method == Roxen.WEBSOCKET_OPEN_METHOD) { +  // DWIM. +  TRACE_LEAVE("Websocket request. Returning 0."); +  return 0; +  }    if(no_magic)    {    TRACE_LEAVE("No magic requested. Returning -1.");    return -1;    }    TIMER_START(directory_module);    if(dir_module)    {    PROF_ENTER(dir_module->module_name,"directory");    LOCK(dir_module);