Removed some printfs.
FossilOrigin-Name: 01f2e28c77bc000c68c39df1b3221d76eef1b2da8d57a569d35c40a5679c46d0
This commit is contained in:
parent
86d1d08fa9
commit
417dfb7043
@ -11,25 +11,14 @@
|
||||
|
||||
int conn_recv_packet(struct conn* conn,uint8_t *buf,int len)
|
||||
{
|
||||
printf("THHHHHHHHHHHHHHHHHHHHHHHHHe Conn recv packet called\n");
|
||||
int n;
|
||||
int flags=0;
|
||||
while( (n = recv(conn->sock,(char*)buf,len,flags)) < 0 ){
|
||||
if (errno!=EINTR)
|
||||
{
|
||||
if (errno == EWOULDBLOCK)
|
||||
{
|
||||
printf("would block\n");
|
||||
|
||||
// continue;
|
||||
}
|
||||
if ( errno==EAGAIN )
|
||||
{
|
||||
printf("again\n");
|
||||
}
|
||||
perror("recv");
|
||||
printf("Return n %d\n",n);
|
||||
return n;
|
||||
return n;
|
||||
|
||||
}
|
||||
}
|
||||
return n;
|
||||
|
Loading…
Reference in New Issue
Block a user