set nodelay on FCGI TCP connection, and avoid 0-length FCGI gen_tcp:recv
set nodelay on FCGI TCP connection, and avoid 0-length FCGI gen_tcp:recv

Set {nodelay,true} on the TCP connection to the FCGI server to improve
performance of small requests.

The code receives packets from the FCGI server and for some cases was
extracting length fields from some packets and then making further
gen_tcp:recv calls based on those length values. The code was not
checking for length values of 0 before calling recv, and passing 0 to
recv means to return all available bytes. For both correctness and
performance, the code must avoid the recv calls altogether when the
length is 0.

capflam/yaws,bsmr-erlang/yaws,treacheroustalks/yaws,capflam/yaws,phonohawk/yaws,namjae/yaws,bsmr-erlang/yaws,ca91/yaws,imtal/yaws,klacke/yaws,sebgod/yaws,patternmatched/yaws,toraritte/azith,namjae/yaws,namjae/yaws,weisslj/yaws,imtal/yaws,andreineculau/yaws,namjae/yaws,klacke/yaws,patternmatched/yaws,weisslj/yaws,phonohawk/yaws,sebgod/yaws,andreineculau/yaws,weisslj/yaws,bsmr-erlang/yaws,toraritte/azith,andreineculau/yaws,phonohawk/yaws,imtal/yaws,phonohawk/yaws,imtal/yaws,capflam/yaws,watonyweng/yaws,toraritte/azith,leoliu/yaws,weisslj/yaws,treacheroustalks/yaws,leoliu/yaws,toraritte/azith,watonyweng/yaws,bsmr-erlang/yaws,jgrinstead/yaws,jgrinstead/yaws,bsmr-erlang/yaws,leoliu/yaws,imtal/yaws,andreineculau/yaws,patternmatched/yaws,phonohawk/yaws,patternmatched/yaws,ca91/yaws,klacke/yaws,toraritte/azith,zephyrean/yaws,treacheroustalks/yaws,patternmatched/yaws,capflam/yaws,leoliu/yaws,sebgod/yaws,leoliu/yaws,namjae/yaws,sebgod/yaws,watonyweng/yaws,klacke/yaws,ca91/yaws,namjae/yaws,weisslj/yaws,phonohawk/yaws,watonyweng/yaws,weisslj/yaws,sebgod/yaws,watonyweng/yaws,patternmatched/yaws,zephyrean/yaws,leoliu/yaws,ca91/yaws,jgrinstead/yaws,bsmr-erlang/yaws,capflam/yaws,bsmr-erlang/yaws,zephyrean/yaws,ca91/yaws,klacke/yaws,capflam/yaws,treacheroustalks/yaws,namjae/yaws,phonohawk/yaws,ca91/yaws,capflam/yaws,imtal/yaws,jgrinstead/yaws,imtal/yaws,zephyrean/yaws,leoliu/yaws,sebgod/yaws,jgrinstead/yaws,watonyweng/yaws,toraritte/azith,zephyrean/yaws,jgrinstead/yaws,klacke/yaws,zephyrean/yaws,andreineculau/yaws,sebgod/yaws,patternmatched/yaws,watonyweng/yaws,weisslj/yaws,jgrinstead/yaws,zephyrean/yaws,klacke/yaws,toraritte/azith,ca91/yaws