@@ -729,6 +729,8 @@ int handle_http_frame_header(struct http_client_ctx *client)
729
729
client -> cursor += bytes_consumed ;
730
730
client -> data_len -= bytes_consumed ;
731
731
732
+ print_http_frames (client );
733
+
732
734
switch (client -> current_frame .type ) {
733
735
case HTTP2_DATA_FRAME :
734
736
return enter_http_frame_data_state (client );
@@ -912,8 +914,6 @@ int handle_http_frame_data(struct http_client_ctx *client)
912
914
913
915
LOG_DBG ("HTTP_SERVER_FRAME_DATA_STATE" );
914
916
915
- print_http_frames (client );
916
-
917
917
if (client -> current_detail == NULL ) {
918
918
/* There is no handler */
919
919
LOG_DBG ("No dynamic handler found." );
@@ -1040,8 +1040,6 @@ int handle_http_frame_headers(struct http_client_ctx *client)
1040
1040
1041
1041
LOG_DBG ("HTTP_SERVER_FRAME_HEADERS" );
1042
1042
1043
- print_http_frames (client );
1044
-
1045
1043
if (is_header_flag_set (frame -> flags , HTTP2_FLAG_PADDED )) {
1046
1044
ret = parse_http_frame_padded_field (client );
1047
1045
if (ret < 0 ) {
@@ -1139,8 +1137,6 @@ int handle_http_frame_priority(struct http_client_ctx *client)
1139
1137
1140
1138
LOG_DBG ("HTTP_SERVER_FRAME_PRIORITY_STATE" );
1141
1139
1142
- print_http_frames (client );
1143
-
1144
1140
if (frame -> length != HTTP2_PRIORITY_FRAME_LEN ) {
1145
1141
return - EBADMSG ;
1146
1142
}
@@ -1168,8 +1164,6 @@ int handle_http_frame_rst_stream(struct http_client_ctx *client)
1168
1164
1169
1165
LOG_DBG ("FRAME_RST_STREAM" );
1170
1166
1171
- print_http_frames (client );
1172
-
1173
1167
if (frame -> length != HTTP2_RST_STREAM_FRAME_LEN ) {
1174
1168
return - EBADMSG ;
1175
1169
}
@@ -1209,8 +1203,6 @@ int handle_http_frame_settings(struct http_client_ctx *client)
1209
1203
1210
1204
LOG_DBG ("HTTP_SERVER_FRAME_SETTINGS" );
1211
1205
1212
- print_http_frames (client );
1213
-
1214
1206
if (client -> data_len < frame -> length ) {
1215
1207
return - EAGAIN ;
1216
1208
}
@@ -1241,8 +1233,6 @@ int handle_http_frame_goaway(struct http_client_ctx *client)
1241
1233
1242
1234
LOG_DBG ("HTTP_SERVER_FRAME_GOAWAY" );
1243
1235
1244
- print_http_frames (client );
1245
-
1246
1236
if (client -> data_len < frame -> length ) {
1247
1237
return - EAGAIN ;
1248
1238
}
@@ -1263,8 +1253,6 @@ int handle_http_frame_window_update(struct http_client_ctx *client)
1263
1253
1264
1254
LOG_DBG ("HTTP_SERVER_FRAME_WINDOW_UPDATE" );
1265
1255
1266
- print_http_frames (client );
1267
-
1268
1256
/* TODO Implement flow control, for now just ignore. */
1269
1257
1270
1258
if (client -> data_len < frame -> length ) {
0 commit comments