Sure there is, it's just undocumented. Try it, gen_tcp:unrecv(Socket, Data). On 02/27/2014 05:43 PM, Max Lapshin wrote: > Yes, such smart things by guessing if first bytes are http or ssl. > > But there is no gen_tcp:unrecv :( -- Loïc Hoguin http://ninenines.eu