1
0
mirror of https://github.com/esp8266/Arduino.git synced 2025-06-12 01:53:07 +03:00

Fixed SOCKET_WRITE() when blocked.

git-svn-id: svn://svn.code.sf.net/p/axtls/code/trunk@203 9a5d90b5-6617-0410-8a86-bb477d3ed2e3
This commit is contained in:
cameronrich
2011-02-11 12:43:01 +00:00
parent 7f3d1265ef
commit 222f2d98f1
2 changed files with 6 additions and 1 deletions

View File

@ -946,7 +946,7 @@ static int send_raw_packet(SSL *ssl, uint8_t protocol)
while (sent < pkt_size)
{
ret = SOCKET_WRITE(ssl->client_fd,
&ssl->bm_all_data[sent], pkt_size);
&ssl->bm_all_data[sent], pkt_size-sent);
if (ret >= 0)
sent += ret;