How to set timeout when call SAP RFC

it is no use to set timeout in flow service,and I find in extend setting does not work, either.How can I control this manually?

I try to use publishAndWait service to publish a document .The service that subscibes the document calls RFC.In publishAndWait service I set timeout.I am not sure of the solution.Does anybody experiences the case.