| 248 | } |
| 249 | |
| 250 | static void c2_transit_recycle(h2_mplx *m, h2_c2_transit *transit) |
| 251 | { |
| 252 | if (m->c2_transits->nelts >= APR_INT32_MAX || |
| 253 | (apr_uint32_t)m->c2_transits->nelts >= m->max_spare_transits) { |
| 254 | c2_transit_destroy(transit); |
| 255 | } |
| 256 | else { |
| 257 | APR_ARRAY_PUSH(m->c2_transits, h2_c2_transit*) = transit; |
| 258 | } |
| 259 | } |
| 260 | |
| 261 | /** |
| 262 | * A h2_mplx needs to be thread-safe *and* if will be called by |
no test coverage detected