improved the code to allow accessing socket session from appSession when create new receive filter in receive filter factory