1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

socket: no need to initialize WinSock on each request

This commit is contained in:
vitalyster
2019-10-09 21:01:31 +03:00
committed by Alexander Medvednikov
parent febd532c4a
commit 0796e1dd69
6 changed files with 38 additions and 34 deletions

View File

@@ -10,7 +10,6 @@ INT port_number = 443;
BOOL use_proxy = FALSE;
DWORD protocol = 0;
ALG_ID aid_key_exch = 0;
WSADATA wsa_data;
// TODO: joe-c
// socket / tls ctx
@@ -70,7 +69,6 @@ void vschannel_cleanup(TlsContext *tls_ctx) {
}
void vschannel_init(TlsContext *tls_ctx) {
WSAStartup(0x202, &wsa_data);
tls_ctx->sspi = InitSecurityInterface();
if(tls_ctx->sspi == NULL) {