add fd type detect in fd_ctx