"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/net/socket.c" between
monit-5.27.2.tar.gz and monit-5.28.0.tar.gz

About: Monit is a utility for managing and monitoring processes, files, directories and filesystems (with automatic error recovery).

socket.c  (monit-5.27.2):socket.c  (monit-5.28.0)
skipping to change at line 617 skipping to change at line 617
break; break;
case Socket_Ip: case Socket_Ip:
case Socket_Ip4: case Socket_Ip4:
case Socket_Ip6: case Socket_Ip6:
_testIp(p); _testIp(p);
break; break;
default: default:
THROW(IOException, "Invalid socket family %d\n", p->family); THROW(IOException, "Invalid socket family %d\n", p->family);
break; break;
} }
p->response = (double)(Time_micro() - start) / 1000.; // Convert microseconds to milliseconds p->responsetime.current = (double)(Time_micro() - start) / 1000. ; // Convert microseconds to milliseconds
p->is_available = Connection_Ok; p->is_available = Connection_Ok;
} }
ELSE ELSE
{ {
p->is_available = Connection_Failed; p->is_available = Connection_Failed;
p->response = -1.; p->responsetime.current = -1.;
RETHROW; RETHROW;
} }
END_TRY; END_TRY;
} }
void Socket_enableSsl(T S, SslOptions_T options, const char *name) { void Socket_enableSsl(T S, SslOptions_T options, const char *name) {
assert(S); assert(S);
#ifdef HAVE_OPENSSL #ifdef HAVE_OPENSSL
if ((S->ssl = Ssl_new(options))) if ((S->ssl = Ssl_new(options)))
Ssl_connect(S->ssl, S->socket, S->timeout, name); Ssl_connect(S->ssl, S->socket, S->timeout, name);
 End of changes. 2 change blocks. 
2 lines changed or deleted 2 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)