Article # 701, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Why does datacall close before timeout?
Q. I'm opening a socket to download web documents and the ppp connection keeps closing after only a couple of minutes. The Internet settings is set for 10 minute timeout. I'm calling SocketSetMediumBusy(..., TRUE) but that's not making a difference. What can I do? A. Calling SocketSetMediumBusy() only prevents other apps who call SocketCloseDomainMedium() from succeeding. If the timeout is not abiding by the autodisconnect time and the app itself is not terminating the connection through some internal idle timeout, then the server might have its own timeout. This is easy to check if you have the ppp log file (there's another KB article on how to start ppp logging). You can set up whatever scheme you want for keeping the connection alive between accesses. Using a timer seems to be the smartest way. You should still call SocketSetMediumBusy() as other apps might still call SocketCloseDomainMedium() between your accesses. Note that SocketSetMediumBusy() does not override the autodisconnect timeout.