Home
last modified time | relevance | path

Searched refs:chunks (Results 1 – 4 of 4) sorted by relevance

/unit/test/
H A Dtest_proxy_chunked.py76 def chunks(self, chunks): member in TestProxyChunked
79 for l, c in chunks:
114 self.get_http10(body=self.chunks([('1000', part + ' X 256')]))[
120 self.get_http10(body=self.chunks([('100000', part + ' X 65536')]))[
127 body=self.chunks([('1000000', part + ' X 1048576')]),
135 body=self.chunks(
143 body=self.chunks(
154 body=self.chunks(
170 body=self.chunks([('1', hex(i % 16)[2:]) for i in range(4096)]),
/unit/src/
H A Dnxt_mem_zone.c229 last = chunks; in nxt_mem_zone_pages()
235 } while (chunks > 1); in nxt_mem_zone_pages()
302 if (slot[n].chunks != chunks) { in nxt_mem_zone_slots_init()
318 slot[n].chunks = chunks; in nxt_mem_zone_slots_init()
340 slot->chunks--; in nxt_mem_zone_slot_init()
530 page->chunks--; in nxt_mem_zone_alloc_small()
554 page->chunks = slot->chunks; in nxt_mem_zone_alloc_small()
861 page->chunks = 1; in nxt_mem_zone_free_chunk()
867 } else if (page->chunks != slot->chunks) { in nxt_mem_zone_free_chunk()
868 page->chunks++; in nxt_mem_zone_free_chunk()
[all …]
H A Dnxt_mp.c49 uint8_t chunks; member
549 page->chunks--; in nxt_mp_alloc_small()
551 if (page->chunks == 0) { in nxt_mp_alloc_small()
566 page->chunks = (1 << n) - 1; in nxt_mp_alloc_small()
900 page->chunks++; in nxt_mp_chunk_free()
902 if (page->chunks == 1) { in nxt_mp_chunk_free()
/unit/test/unit/
H A Dhttp.py243 chunks = raw_body.split(crlf)
245 if len(chunks) < 3:
248 if chunks.pop() != b'':
252 last_size = int(chunks[-2], 16)
257 if last_size != 0 or chunks[-1] != b'':
261 while len(chunks) >= 2:
263 size = int(chunks.pop(0), 16)
269 assert len(chunks) == 1, 'last zero size'
272 temp_body = crlf.join(chunks)
278 chunks = temp_body.split(crlf)