improved debug
This commit is contained in:
parent
c319c19125
commit
f258ff1565
|
@ -76,7 +76,7 @@ public class Parser
|
||||||
{
|
{
|
||||||
if (LOG.isDebugEnabled())
|
if (LOG.isDebugEnabled())
|
||||||
{
|
{
|
||||||
int l=Math.min(buffer.remaining(),16);
|
int l=Math.min(buffer.remaining(),32);
|
||||||
LOG.debug("Parsing "+TypeUtil.toHexString(buffer.array(),buffer.arrayOffset()+buffer.position(),l)+(l<buffer.remaining()?"...":""));
|
LOG.debug("Parsing "+TypeUtil.toHexString(buffer.array(),buffer.arrayOffset()+buffer.position(),l)+(l<buffer.remaining()?"...":""));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -280,7 +280,6 @@ public class HpackContext
|
||||||
|
|
||||||
public void addToRefSet(Entry entry)
|
public void addToRefSet(Entry entry)
|
||||||
{
|
{
|
||||||
LOG.debug("RefSet added {}",entry);
|
|
||||||
entry.addToRefSet(this);
|
entry.addToRefSet(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -498,7 +497,7 @@ public class HpackContext
|
||||||
_refSetPrev=ctx._refSet._refSetPrev;
|
_refSetPrev=ctx._refSet._refSetPrev;
|
||||||
ctx._refSet._refSetPrev._refSetNext=this;
|
ctx._refSet._refSetPrev._refSetNext=this;
|
||||||
ctx._refSet._refSetPrev=this;
|
ctx._refSet._refSetPrev=this;
|
||||||
LOG.debug("RefSet add {}",this);
|
LOG.debug("RefSet added {}",this);
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean isInReferenceSet()
|
public boolean isInReferenceSet()
|
||||||
|
|
|
@ -20,6 +20,7 @@
|
||||||
package org.eclipse.jetty.http2.server;
|
package org.eclipse.jetty.http2.server;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
import java.util.Date;
|
||||||
|
|
||||||
import javax.servlet.Servlet;
|
import javax.servlet.Servlet;
|
||||||
import javax.servlet.ServletException;
|
import javax.servlet.ServletException;
|
||||||
|
@ -120,6 +121,8 @@ public class Http2Server
|
||||||
response.setHeader("custom","value");
|
response.setHeader("custom","value");
|
||||||
response.setContentType("text/plain");
|
response.setContentType("text/plain");
|
||||||
String content = "Hello from Jetty HTTP2\n";
|
String content = "Hello from Jetty HTTP2\n";
|
||||||
|
content+="uri="+request.getRequestURI()+"\n";
|
||||||
|
content+="date="+new Date()+"\n";
|
||||||
response.setContentLength(content.length());
|
response.setContentLength(content.length());
|
||||||
response.getOutputStream().print(content);
|
response.getOutputStream().print(content);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue