jdorner / node-sapnwrfc

SAP Netweaver RFC SDK bindings for Node.js
MIT License
55 stars 23 forks source link

Connection recovery after network failure #4

Open serdem opened 11 years ago

serdem commented 11 years ago

Hi Joachim, I use your "sapnwrf" module in a node expressjs web application. I get an instance of "sapnwrfc.Connection" and use it for all requests for different clients. Everything goes well until a network connection to SAP system failure. I check the connection status by using connection.Ping() method and if the connection is not alive I try to reOpen the connection by close() and then Open(). But I get the " WSAETIMEDOUT: Connection timed out" error even if the connection to SAP system is established again.

Do you have any recommendation for handle the connection failure?