Re: [PATCH] refreshing connect_time smsc_http.c

Alexander Malysh <[email protected]>
Newsgroups gmane.comp.mobile.kannel.devel
Message-ID <[email protected]>
Hi,

good catch. committed to cvs.

Thanks,
Alex

Vincent CHAVANIS schrieb:
> Minor changes from http smsc,
> We had to know when the SMSC were unreachable. (otherwise the connect_time value has no sense to me)
> I mean actually we only know when it has been started.
> We need to refresh the connect time when status is changing to SMSCCONN_ACTIVE
> 
> Any comments on this ?
> 
> regards
> 
> Vincent
> 
> 
> --- /gateway-cvs/gw/smsc/smsc_http.c    2006-04-07 14:54:06.000000000 +0200
> +++ /gateway/gw/smsc/smsc_http.c        2006-04-14 17:56:31.000000000 +0200
> @@ -271,6 +271,7 @@
>              /* we received a response, so this link is considered online again */
>              if (status && conn->status != SMSCCONN_ACTIVE) {
>                  conn->status = SMSCCONN_ACTIVE;
> +                conn->connect_time = time(NULL);
>              }
>              conndata->parse_reply(conn, msg, status, headers, body);
>          }
> 
> 
> 
> --
> Telemaque - NICE - (FR)
> Service Technique - Developpement
> http://www.telemaque.fr/
> [email protected]
> Tel : +33 4 93 97 71 64 (fax 68)
> 
> 
> 
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.