#1 2013-04-04 12:13:05

colbert
Member
Registered: 2013-03-02
Posts: 38
Website

Client loses Connection with server

Hello,

I've developed a program that uses the TSQLRestServerDB with the ORM and SQlite and some Method-based services.

The application works quite well, very stable, but sometimes the application freezes trying to connect to the server, somehow looks like that it loses the connection, but  before it happens was working fine.

The internet connection is very stable, when client loses connection with the server the internet connection still working fine.

What could be the problem?

Offline

#2 2013-04-04 13:58:37

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Client loses Connection with server

Try the latest 1.18 version from http://synopse.info/fossil/wiki?name=Get+the+source

It fixes several issues:
- Custom connection error handling;
- Custom TimeOut properties for the client.

Were you able to find out the context in which the connection is lost?

Online

#3 2013-04-04 16:20:19

colbert
Member
Registered: 2013-03-02
Posts: 38
Website

Re: Client loses Connection with server

I'm already using the last version.

Is there some kind of Log that I can use to find out?

Offline

#4 2013-04-04 17:37:01

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Client loses Connection with server

Yes, you can activate the logging: set it in VERBOSE mode, on both client and server sides.

Then look at the action where the connection is lost.

Some questions:
- Is your server using the http.sys server? i.e. are you sure you did register the URI or run the server with administrator rights?
- What is the exact exception raised on the client side?

Online

#5 2013-04-04 18:41:23

colbert
Member
Registered: 2013-03-02
Posts: 38
Website

Re: Client loses Connection with server

I'm using TSQLHttpServer and TSQLHttpClient, both with administrator rights.

How can I set in VERBOSE mode in those classes?

I've searched in both classes and didn't find anything like it.

Offline

#6 2013-04-04 18:59:00

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,660
Website

Re: Client loses Connection with server

Please search for the 1.18 SAD pdf document about logging.

RTFM!!
smile

Online

Board footer

Powered by FluxBB