Project

General

Profile

Bug #5776 ยป 0004-Fix-2-second-start-up-delay-for-bootstrap-sessions.patch

Bruce Toll, 06/22/2017 06:14 AM

View differences:

src/web/WebSession.C
115 115
    canWriteWebSocket_(false),
116 116
    pollRequestsIgnored_(0),
117 117
    progressiveBoot_(false),
118
    bootStyle_(true),
118 119
    deferredRequest_(nullptr),
119 120
    deferredResponse_(nullptr),
120 121
    deferCount_(0),
......
1544 1545
	      (app_ || (!ios5 && !nojs)) &&
1545 1546
	      page && *page == std::to_string(renderer_.pageId());
1546 1547

  
1547
	    if (!bootStyle) {
1548
	    bootStyle_ &= bootStyle;
1549

  
1550
	    if (!bootStyle_) {
1548 1551
	      handler.response()->setContentType("text/css");
1549 1552
	      handler.flushResponse();
1550 1553
	    } else {
src/web/WebSession.h
300 300
  WebResponse *asyncResponse_, *webSocket_, *bootStyleResponse_;
301 301
  bool canWriteWebSocket_, webSocketConnected_;
302 302
  int pollRequestsIgnored_;
303
  bool progressiveBoot_;
303
  bool progressiveBoot_, bootStyle_;
304 304

  
305 305
  WebRequest *deferredRequest_;
306 306
  WebResponse *deferredResponse_;
307
- 
    (1-1/1)