Resetting frontBio after read now.

This commit is contained in:
Armin Novak 2015-07-07 14:48:27 +02:00
parent 358289fb51
commit 0120ee75ca
1 changed files with 6 additions and 1 deletions

View File

@ -744,10 +744,13 @@ int transport_check_fds(rdpTransport* transport)
int status;
int recv_status;
wStream* received;
HANDLE event;
if (!transport)
return -1;
BIO_get_event(transport->frontBio, &event);
/**
* Loop through and read all available PDUs. Since multiple
* PDUs can exist, it's important to deliver them all before
@ -771,6 +774,7 @@ int transport_check_fds(rdpTransport* transport)
if (status < 0)
WLog_DBG(TAG, "transport_check_fds: transport_read_pdu() - %i", status);
ResetEvent(event);
return status;
}
@ -799,6 +803,7 @@ int transport_check_fds(rdpTransport* transport)
}
}
ResetEvent(event);
return 0;
}
@ -966,7 +971,7 @@ out:
rdpTransport* transport_new(rdpContext* context)
{
rdpTransport* transport;
transport = (rdpTransport*) calloc(1, sizeof(rdpTransport));
if (!transport)