410799 errors while creating push streams in HttpTransportOverSPDY are now logged to debug instead of warn
This commit is contained in:
parent
762e91efbe
commit
6d75e18661
|
@ -23,7 +23,6 @@ import java.nio.ByteBuffer;
|
||||||
import java.util.Queue;
|
import java.util.Queue;
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
import java.util.concurrent.TimeUnit;
|
import java.util.concurrent.TimeUnit;
|
||||||
import java.util.concurrent.TimeoutException;
|
|
||||||
import java.util.concurrent.atomic.AtomicBoolean;
|
import java.util.concurrent.atomic.AtomicBoolean;
|
||||||
|
|
||||||
import org.eclipse.jetty.http.HttpField;
|
import org.eclipse.jetty.http.HttpField;
|
||||||
|
@ -86,14 +85,14 @@ public class HttpTransportOverSPDY implements HttpTransport
|
||||||
return requestHeaders;
|
return requestHeaders;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void send(ByteBuffer responseBodyContent, boolean lastContent, Callback callback)
|
public void send(ByteBuffer responseBodyContent, boolean lastContent, Callback callback)
|
||||||
{
|
{
|
||||||
// TODO can this be more efficient?
|
// TODO can this be more efficient?
|
||||||
send(null,responseBodyContent, lastContent, callback);
|
send(null, responseBodyContent, lastContent, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void send(HttpGenerator.ResponseInfo info, ByteBuffer content, boolean lastContent, Callback callback)
|
public void send(HttpGenerator.ResponseInfo info, ByteBuffer content, boolean lastContent, Callback callback)
|
||||||
{
|
{
|
||||||
|
@ -306,7 +305,7 @@ public class HttpTransportOverSPDY implements HttpTransport
|
||||||
final Fields pushHeaders = createPushHeaders(scheme, host, pushResource);
|
final Fields pushHeaders = createPushHeaders(scheme, host, pushResource);
|
||||||
final Fields pushRequestHeaders = createRequestHeaders(scheme, host, uri, pushResource);
|
final Fields pushRequestHeaders = createRequestHeaders(scheme, host, uri, pushResource);
|
||||||
|
|
||||||
stream.push(new PushInfo(pushHeaders, false), new Promise.Adapter<Stream>()
|
stream.push(new PushInfo(pushHeaders, false), new Promise<Stream>()
|
||||||
{
|
{
|
||||||
@Override
|
@Override
|
||||||
public void succeeded(Stream pushStream)
|
public void succeeded(Stream pushStream)
|
||||||
|
@ -315,6 +314,12 @@ public class HttpTransportOverSPDY implements HttpTransport
|
||||||
queue.offer(new PushResource(pushStream, pushRequestHeaders));
|
queue.offer(new PushResource(pushStream, pushRequestHeaders));
|
||||||
sendNextResourceData();
|
sendNextResourceData();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public void failed(Throwable x)
|
||||||
|
{
|
||||||
|
LOG.debug("Creating push stream failed.", x);
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue