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:

committed by
Alexander Medvednikov

parent
febd532c4a
commit
0796e1dd69
2
thirdparty/vschannel/vschannel.c
vendored
2
thirdparty/vschannel/vschannel.c
vendored
@@ -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) {
|
||||
|
Reference in New Issue
Block a user