API Support Forum
OEC API > API Support > Disconnecting?
Author Topic: Disconnecting?
(4 messages, Page 1 of 1)
Moderators: VPfau
DBrubaker673
Posts: 55
Joined: Jul 18, 2007


Posted: Jan 04, 2008 @ 11:33 AM             Msg. 1 of 4
I'm connected thru the API to your api server and your production server, one on each machine. On the production server I have stopped getting ESH8 ticks. I seem to be connected, but when I send chat messages to Chi, Keith and Ross (who show online), I get no response. So I suspect I am actually disconnected.

This morning I stopped getting ESH8 ticks on the production server 3 different times, but they came back after 5-15 seconds. Now they have been stopped for a few minutes. I'll abort and try to re-login.

My question: Is there a way to know when I've lost my connection? I'm listening to the OnDisconnectedEvent, but it has never fired.

2nd question -- is the quote server the same on the api server and the prod server?

BTW, trades execute just fine even after ticks stop.

Thanks,

Dale
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 04, 2008 @ 11:58 AM             Msg. 2 of 4
1. if you didn't get OnDisconnected event, then connection is still alive. Note that TCP/IP protocol tries to mainain connection and resend data if some packets are lost - so delays could be caused by internet problems.
Usually, API is checking connection with keep-alive requests and drops it if absolutely no data is received for 1 minute.

2. API and Production servers are on different machines.

I've checked DBrubaker60 but don't see any disconnections or reconnections since 01/03/07 15:30 CST in production server.
alex118
Posts: 5
Joined: Aug 15, 2007


Posted: Jan 09, 2008 @ 08:20 AM             Msg. 3 of 4
how differ quotes from api and from product server?
SergeK
-Developer-
Posts: 475
Joined: Jan 26, 2007


Posted: Jan 09, 2008 @ 08:27 AM             Msg. 4 of 4
api and production quotes should have no difference by design.