~grubng-dev/grubng/clients-c

« back to all changes in this revision

Viewing changes to GrubCClient.c

  • Committer: Balinny
  • Date: 2010-03-20 18:07:39 UTC
  • Revision ID: balinny@gmail.com-20100320180739-om61fr8lz758orf3
A setsockopt timeout will return EAGAIN

Show diffs side-by-side

added added

removed removed

Lines of Context:
261
261
         } while((i = recv(sockfd, Pages[Pi] + PagePos, PageSpace, 0)) > 0);
262
262
         
263
263
         if (i == -1) {
264
 
             if (errno == ETIMEDOUT) {
 
264
             if ((errno == ETIMEDOUT) || (errno == EAGAIN)) {
265
265
                 fprintf(stderr, "Timeout ");                    
266
266
                 Error = TIMEOUT;   
267
267
             } else {