"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "daemon/http-tx-mgr.c" between
seafile-8.0.2.tar.gz and seafile-8.0.3.tar.gz

About: Seafile (server) provides a cloud storage with file encryption and group sharing, and emphasis on reliability and high performance.

http-tx-mgr.c  (seafile-8.0.2):http-tx-mgr.c  (seafile-8.0.3)
skipping to change at line 41 skipping to change at line 41
#include "utils.h" #include "utils.h"
#include "diff-simple.h" #include "diff-simple.h"
#define DEBUG_FLAG SEAFILE_DEBUG_TRANSFER #define DEBUG_FLAG SEAFILE_DEBUG_TRANSFER
#include "log.h" #include "log.h"
#include "timer.h" #include "timer.h"
#define HTTP_OK 200 #define HTTP_OK 200
#define HTTP_BAD_REQUEST 400 #define HTTP_BAD_REQUEST 400
#define HTTP_REQUEST_TIME_OUT 408
#define HTTP_FORBIDDEN 403 #define HTTP_FORBIDDEN 403
#define HTTP_NOT_FOUND 404 #define HTTP_NOT_FOUND 404
#define HTTP_NO_QUOTA 443 #define HTTP_NO_QUOTA 443
#define HTTP_REPO_DELETED 444 #define HTTP_REPO_DELETED 444
#define HTTP_REPO_TOO_LARGE 447
#define HTTP_REPO_CORRUPTED 445 #define HTTP_REPO_CORRUPTED 445
#define HTTP_INTERNAL_SERVER_ERROR 500 #define HTTP_INTERNAL_SERVER_ERROR 500
#define RESET_BYTES_INTERVAL_MSEC 1000 #define RESET_BYTES_INTERVAL_MSEC 1000
#define CLEAR_POOL_ERR_CNT 3 #define CLEAR_POOL_ERR_CNT 3
#ifndef SEAFILE_CLIENT_VERSION #ifndef SEAFILE_CLIENT_VERSION
#define SEAFILE_CLIENT_VERSION PACKAGE_VERSION #define SEAFILE_CLIENT_VERSION PACKAGE_VERSION
#endif #endif
skipping to change at line 1092 skipping to change at line 1094
else if (status >= HTTP_INTERNAL_SERVER_ERROR) else if (status >= HTTP_INTERNAL_SERVER_ERROR)
return SYNC_ERROR_ID_SERVER; return SYNC_ERROR_ID_SERVER;
else if (status == HTTP_NOT_FOUND) else if (status == HTTP_NOT_FOUND)
return SYNC_ERROR_ID_SERVER; return SYNC_ERROR_ID_SERVER;
else if (status == HTTP_NO_QUOTA) else if (status == HTTP_NO_QUOTA)
return SYNC_ERROR_ID_QUOTA_FULL; return SYNC_ERROR_ID_QUOTA_FULL;
else if (status == HTTP_REPO_DELETED) else if (status == HTTP_REPO_DELETED)
return SYNC_ERROR_ID_SERVER_REPO_DELETED; return SYNC_ERROR_ID_SERVER_REPO_DELETED;
else if (status == HTTP_REPO_CORRUPTED) else if (status == HTTP_REPO_CORRUPTED)
return SYNC_ERROR_ID_SERVER_REPO_CORRUPT; return SYNC_ERROR_ID_SERVER_REPO_CORRUPT;
else if (status == HTTP_REPO_TOO_LARGE || status == HTTP_REQUEST_TIME_OUT)
return SYNC_ERROR_ID_LIBRARY_TOO_LARGE;
else else
return SYNC_ERROR_ID_GENERAL_ERROR; return SYNC_ERROR_ID_GENERAL_ERROR;
} }
static void static void
handle_http_errors (HttpTxTask *task, int status) handle_http_errors (HttpTxTask *task, int status)
{ {
task->error = http_error_to_http_task_error (status); task->error = http_error_to_http_task_error (status);
} }
 End of changes. 3 change blocks. 
0 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)