use alloca to create connect

Signed-off-by: Fuang.Cao <cavan.cfa@gmail.com>