Develop and Download Open Source Software

Browse Subversion Repository

Diff of /tags/REL-2.2/ftp_get_buffer.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 34 by hirohitohigashi, Sun Mar 1 12:43:14 2009 UTC revision 36 by hirohitohigashi, Sun Mar 1 13:40:55 2009 UTC
# Line 74  int ftp_get_buffer( LIBOFTP *ftp, const Line 74  int ftp_get_buffer( LIBOFTP *ftp, const
74          n = recv( data_socket, p, len, 0 );          n = recv( data_socket, p, len, 0 );
75          DEBUGPRINT1( "RECV: n=%d\n", n );          DEBUGPRINT1( "RECV: n=%d\n", n );
76          if( n < 0 ) {          if( n < 0 ) {
77                int ret;
78              DEBUGPRINT1( "recv error. %s\n", strerror(errno) );              DEBUGPRINT1( "recv error. %s\n", strerror(errno) );
79              copy_strerror();              if( errno == EAGAIN ) {
80                    ret = LIBOFTP_ERROR_TIMEOUT;
81                } else {
82                    ret = LIBOFTP_ERROR_OS;
83                    copy_strerror();
84                }
85              close( data_socket );              close( data_socket );
86              return LIBOFTP_ERROR_OS;              return ret;
87          }          }
88          if( n == 0 ) {          if( n == 0 ) {
89              break;              break;

Legend:
Removed from v.34  
changed lines
  Added in v.36

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26