fix timeout api

Change-Id: I45d8168e534acbca61efd6e144376f887fc09d24