Also make sure the ->data field is set properly for tcp sockets