By the way passing zero size last_buf is ok, as I understand? What do you mean by "non-special bufs" ? Posted at Nginx Forum: http://forum.nginx.org/read.php?2,216804,216951#msg-216951