tls: use fifo segments instead of chunks