https://bz.apache.org/bugzilla/show_bug.cgi?id=60466

            Bug ID: 60466
           Summary: WsHandshakeRequest getHttpSession() returns null
           Product: Tomcat 8
           Version: 8.5.x-trunk
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: WebSocket
          Assignee: dev@tomcat.apache.org
          Reporter: hzhang1...@gmail.com
  Target Milestone: ----

private final Object httpSession;

public WsHandshakeRequest() {
    // The final object httpSession can be always null. Why not calling
    // getSession(true) or at least provide a way to do it.
    httpSession = request.getSession(false);
}

@Override
public Object getHttpSession() {
    return httpSession;
}

-- 
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to