mirror of
https://github.com/jetty/jetty.project.git
synced 2025-03-01 11:29:29 +00:00
Revert "Merged branch 'jetty-9.2.x' into 'master'."
This reverts commit db61fc2a473c98d75a30aac7fba306c62677d960.
This commit is contained in:
parent
db61fc2a47
commit
9549b32ea6
@ -87,7 +87,10 @@ public abstract class AbstractConnection implements Connection
|
|||||||
// TODO always dispatch failure ?
|
// TODO always dispatch failure ?
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
getExecutor().execute(() ->
|
getExecutor().execute(new Runnable()
|
||||||
|
{
|
||||||
|
@Override
|
||||||
|
public void run()
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -97,6 +100,7 @@ public abstract class AbstractConnection implements Connection
|
|||||||
{
|
{
|
||||||
LOG.warn(e);
|
LOG.warn(e);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
catch(RejectedExecutionException e)
|
catch(RejectedExecutionException e)
|
||||||
@ -230,9 +234,10 @@ public abstract class AbstractConnection implements Connection
|
|||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return String.format("%s@%x[%s]",
|
return String.format("%s@%x[%s,%s]",
|
||||||
getClass().getSimpleName(),
|
getClass().getSimpleName(),
|
||||||
hashCode(),
|
hashCode(),
|
||||||
|
_state.get(),
|
||||||
_endPoint);
|
_endPoint);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -255,5 +260,5 @@ public abstract class AbstractConnection implements Connection
|
|||||||
{
|
{
|
||||||
return String.format("AC.ReadCB@%x{%s}", AbstractConnection.this.hashCode(),AbstractConnection.this);
|
return String.format("AC.ReadCB@%x{%s}", AbstractConnection.this.hashCode(),AbstractConnection.this);
|
||||||
}
|
}
|
||||||
}
|
};
|
||||||
}
|
}
|
||||||
|
@ -554,7 +554,7 @@ public class HttpChannel implements Runnable, HttpOutput.Interceptor
|
|||||||
_requests,
|
_requests,
|
||||||
_committed.get(),
|
_committed.get(),
|
||||||
_state.getState(),
|
_state.getState(),
|
||||||
_request.getHttpURI());
|
_uri);
|
||||||
}
|
}
|
||||||
|
|
||||||
public void onRequest(MetaData.Request request)
|
public void onRequest(MetaData.Request request)
|
||||||
|
@ -558,12 +558,12 @@ public class HttpConnection extends AbstractConnection implements Runnable, Http
|
|||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return String.format("%s[p=%s,g=%s,c=%s][b=%s]",
|
return String.format("%s[p=%s,g=%s,c=%s]",
|
||||||
super.toString(),
|
super.toString(),
|
||||||
_parser,
|
_parser,
|
||||||
_generator,
|
_generator,
|
||||||
_channel,
|
_channel);
|
||||||
BufferUtil.toDetailString(_requestBuffer));
|
return super.toString()+"<--"+BufferUtil.toDetailString(_requestBuffer);
|
||||||
}
|
}
|
||||||
|
|
||||||
private class Content extends HttpInput.Content
|
private class Content extends HttpInput.Content
|
||||||
|
@ -637,11 +637,13 @@ public class HttpInput extends ServletInputStream implements Runnable
|
|||||||
@Override
|
@Override
|
||||||
public String toString()
|
public String toString()
|
||||||
{
|
{
|
||||||
return String.format("%s@%x[c=%d,s=%s]",
|
return String.format("%s@%x[r=%d,s=%s,e=%s,f=%s]",
|
||||||
getClass().getSimpleName(),
|
getClass().getSimpleName(),
|
||||||
hashCode(),
|
hashCode(),
|
||||||
_contentConsumed,
|
_contentRead,
|
||||||
_state);
|
_contentState,
|
||||||
|
_eofState,
|
||||||
|
_onError);
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class PoisonPillContent extends Content
|
public static class PoisonPillContent extends Content
|
||||||
|
@ -2171,7 +2171,7 @@ public class Request implements HttpServletRequest
|
|||||||
*/
|
*/
|
||||||
public void setAuthority(String host,int port)
|
public void setAuthority(String host,int port)
|
||||||
{
|
{
|
||||||
_metadata.getURI().setAuthority(host,port);
|
_metadata.getURI().setAuthority(host,port);;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* ------------------------------------------------------------ */
|
/* ------------------------------------------------------------ */
|
||||||
@ -2254,7 +2254,7 @@ public class Request implements HttpServletRequest
|
|||||||
getClass().getSimpleName(),
|
getClass().getSimpleName(),
|
||||||
_handled ? "[" : "(",
|
_handled ? "[" : "(",
|
||||||
getMethod(),
|
getMethod(),
|
||||||
getHttpURI(),
|
_uri,
|
||||||
_handled ? "]" : ")",
|
_handled ? "]" : ")",
|
||||||
hashCode());
|
hashCode());
|
||||||
}
|
}
|
||||||
@ -2327,7 +2327,7 @@ public class Request implements HttpServletRequest
|
|||||||
IO.copy(is, os);
|
IO.copy(is, os);
|
||||||
String content=new String(os.toByteArray(),charset==null?StandardCharsets.UTF_8:Charset.forName(charset));
|
String content=new String(os.toByteArray(),charset==null?StandardCharsets.UTF_8:Charset.forName(charset));
|
||||||
if (_contentParameters == null)
|
if (_contentParameters == null)
|
||||||
_contentParameters = params == null ? new MultiMap<>() : params;
|
_contentParameters = params == null ? new MultiMap<String>() : params;
|
||||||
_contentParameters.add(mp.getName(), content);
|
_contentParameters.add(mp.getName(), content);
|
||||||
}
|
}
|
||||||
os.reset();
|
os.reset();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user