File tree Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Expand file tree Collapse file tree 3 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -69,7 +69,6 @@ void get_data(TCPSocket* sock){
69
69
int ret;
70
70
while ((ret = sock->recv (buffer+len, sizeof (buffer) - 1 - len)) > 0 ) {
71
71
len += ret;
72
- sock->set_timeout (0 );
73
72
}
74
73
if (len >= 0 )
75
74
buffer[len] = ' \0 ' ;
Original file line number Diff line number Diff line change @@ -78,7 +78,6 @@ void test_tcp_hello_world() {
78
78
int ret;
79
79
while ((ret = sock.recv (buffer+len, sizeof (buffer) - 1 - len)) > 0 ) {
80
80
len += ret;
81
- sock.set_timeout (0 );
82
81
}
83
82
if (len >= 0 )
84
83
buffer[len] = ' \0 ' ;
Original file line number Diff line number Diff line change @@ -108,7 +108,7 @@ void test_udp_dtls_handshake() {
108
108
109
109
int step = 0 ;
110
110
while (step < udp_dtls_handshake_count) {
111
- err = sock.recvfrom (NULL , buffer, udp_dtls_handshake_pattern[step] );
111
+ err = sock.recvfrom (NULL , buffer, sizeof (buffer) );
112
112
printf (" UDP: rx <- %d " , err);
113
113
114
114
// check length
You can’t perform that action at this time.
0 commit comments