MCPcopy Index your code
hub / github.com/apache/tomcat / recycle

Method recycle

java/org/apache/coyote/http2/Stream.java:886–904  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

884 * should be sufficient) but it is implemented as precaution along with the WARN level logging.
885 */
886 final void recycle() {
887 if (recycled) {
888 log.warn(sm.getString("stream.recycle.duplicate", getConnectionId(), getIdAsString()));
889 return;
890 }
891 synchronized (recycledLock) {
892 if (recycled) {
893 log.warn(sm.getString("stream.recycle.duplicate", getConnectionId(), getIdAsString()));
894 return;
895 }
896 recycled = true;
897 }
898 if (log.isTraceEnabled()) {
899 log.trace(sm.getString("stream.recycle.first", getConnectionId(), getIdAsString()));
900 }
901 coyoteRequest.recycle();
902 coyoteResponse.recycle();
903 handler.getProtocol().pushRequestAndResponse(coyoteRequest);
904 }
905
906
907 boolean isTrailerFieldsReady() {

Callers

nothing calls this directly

Calls 9

getConnectionIdMethod · 0.95
getIdAsStringMethod · 0.80
warnMethod · 0.65
getStringMethod · 0.65
isTraceEnabledMethod · 0.65
traceMethod · 0.65
recycleMethod · 0.65
getProtocolMethod · 0.65

Tested by

no test coverage detected