trace 22 fix zero length close from client
trace 22 fix zero length close from client

close() from javascript api in Chrome and Firefox doesn't do the
right thing.  It's because the payload is zero-length (with a frame
key...)  This fixes it.

Reported-by: 巫书轶
Signed-off-by: Andy Green <b471f5a494de34531c9e5a6e15abda71edd49104@linaro.org>
mralexgray/libwebsockets-xcode,DaYeSquad/libwebsockets,peeracle/libwebsockets,ralight/libwebsockets,weimingtom/libwebsockets,cambridgehackers/libwebsockets,dumganhar/libwebsockets,pankona/libwebsockets,abligh/libwebsockets,tn0502/libwebsockets,gameclosure/libwebsockets,dtebbs/libwebsockets,dtebbs/libwebsockets,mralexgray/libwebsockets-xcode,sartura/libwebsockets,GroundControl-Solutions/libwebsockets,weimingtom/libwebsockets,maws/libwebsockets,Chilledheart/libwebsockets,jmillan/libwebsockets,antmicro/libwebsockets,ralight/libwebsockets,canopy-project/libwebsockets-canopy,ralight/libwebsockets,sartura/libwebsockets,RobertoMalatesta/libwebsockets,wenqiwooo/syslog-libwebsockets,SoapyMan/libwebsockets,sartura/libwebsockets,wenqiwooo/syslog-libwebsockets,PureSwift/libwebsockets,JoakimSoderberg/libwebsockets,turbulenz/libwebsockets,abligh/libwebsockets,DaYeSquad/libwebsockets,kaostao/libwebsockets,Chilledheart/libwebsockets,dumganhar/libwebsockets,sanyaade-teachings/libwebsockets,turbulenz/libwebsockets,sartura/libwebsockets,giovanni-liboni/libwebsockets,pankona/libwebsockets,jmillan/libwebsockets,canopy-project/libwebsockets-canopy,GroundControl-Solutions/libwebsockets,IOPOINT/libwebsockets,jmillan/libwebsockets,pebble/libwebsockets,kaostao/libwebsockets,dumganhar/libwebsockets,SoapyMan/libwebsockets,lukasz-skalski/libwebsockets,dumganhar/libwebsockets,giovanni-liboni/libwebsockets,pankona/libwebsockets,pombredanne/libwebsockets,PureSwift/libwebsockets,lukasz-skalski/libwebsockets,dtebbs/libwebsockets,mushroomgithub/libwebsockets,mralexgray/libwebsockets-xcode,jmillan/libwebsockets,pebble/libwebsockets,cambridgehackers/libwebsockets,SoapyMan/libwebsockets,JoakimSoderberg/libwebsockets,mushroomgithub/libwebsockets,JoakimSoderberg/libwebsockets,wenqiwooo/syslog-libwebsockets,giovanni-liboni/libwebsockets,turbulenz/libwebsockets,cambridgehackers/libwebsockets,mushroomgithub/libwebsockets,Chilledheart/libwebsockets,peeracle/libwebsockets,pombredanne/libwebsockets,ralight/libwebsockets,PureSwift/libwebsockets,mushroomgithub/libwebsockets,antmicro/libwebsockets,antmicro/libwebsockets,mralexgray/libwebsockets-xcode,Chilledheart/libwebsockets,maws/libwebsockets,SoapyMan/libwebsockets,tn0502/libwebsockets,sanyaade-teachings/libwebsockets,weimingtom/libwebsockets,sanyaade-teachings/libwebsockets,lukasz-skalski/libwebsockets,tn0502/libwebsockets,peeracle/libwebsockets,PureSwift/libwebsockets,DaYeSquad/libwebsockets,dtebbs/libwebsockets,pombredanne/libwebsockets,DaYeSquad/libwebsockets,pebble/libwebsockets,PureSwift/libwebsockets,sartura/libwebsockets,maws/libwebsockets,cambridgehackers/libwebsockets,gameclosure/libwebsockets,DaYeSquad/libwebsockets,giovanni-liboni/libwebsockets,GroundControl-Solutions/libwebsockets,RobertoMalatesta/libwebsockets,dumganhar/libwebsockets,SoapyMan/libwebsockets,JoakimSoderberg/libwebsockets,GroundControl-Solutions/libwebsockets,ralight/libwebsockets,tn0502/libwebsockets,peeracle/libwebsockets,kaostao/libwebsockets,sartura/libwebsockets,peeracle/libwebsockets,abligh/libwebsockets,gameclosure/libwebsockets,pombredanne/libwebsockets,wenqiwooo/syslog-libwebsockets,maws/libwebsockets,antmicro/libwebsockets,canopy-project/libwebsockets-canopy,RobertoMalatesta/libwebsockets,RobertoMalatesta/libwebsockets,GroundControl-Solutions/libwebsockets,gameclosure/libwebsockets,weimingtom/libwebsockets,sartura/libwebsockets,IOPOINT/libwebsockets,pankona/libwebsockets,pebble/libwebsockets,sanyaade-teachings/libwebsockets,IOPOINT/libwebsockets,kaostao/libwebsockets,lukasz-skalski/libwebsockets,abligh/libwebsockets