Added handling of Credential frames (for now just issuing a warning).
This commit is contained in:
parent
91105910ca
commit
fb34f9b824
|
@ -52,6 +52,7 @@ import org.eclipse.jetty.spdy.api.StreamStatus;
|
|||
import org.eclipse.jetty.spdy.api.SynInfo;
|
||||
import org.eclipse.jetty.spdy.frames.ControlFrame;
|
||||
import org.eclipse.jetty.spdy.frames.ControlFrameType;
|
||||
import org.eclipse.jetty.spdy.frames.CredentialFrame;
|
||||
import org.eclipse.jetty.spdy.frames.DataFrame;
|
||||
import org.eclipse.jetty.spdy.frames.GoAwayFrame;
|
||||
import org.eclipse.jetty.spdy.frames.HeadersFrame;
|
||||
|
@ -328,6 +329,11 @@ public class StandardSession implements ISession, Parser.Listener, Handler<Stand
|
|||
onWindowUpdate((WindowUpdateFrame)frame);
|
||||
break;
|
||||
}
|
||||
case CREDENTIAL:
|
||||
{
|
||||
onCredential((CredentialFrame)frame);
|
||||
break;
|
||||
}
|
||||
default:
|
||||
{
|
||||
throw new IllegalStateException();
|
||||
|
@ -633,6 +639,12 @@ public class StandardSession implements ISession, Parser.Listener, Handler<Stand
|
|||
flush();
|
||||
}
|
||||
|
||||
private void onCredential(CredentialFrame frame)
|
||||
{
|
||||
logger.warn("{} frame not yet supported", ControlFrameType.CREDENTIAL);
|
||||
flush();
|
||||
}
|
||||
|
||||
protected void close()
|
||||
{
|
||||
// Check for null to support tests
|
||||
|
|
Loading…
Reference in New Issue