• R/O
  • SSH
  • HTTPS

bchan: 提交


Commit MetaInfo

修訂608 (tree)
時間2014-07-06 01:56:32
作者ornse01

Log Message

fix error handling in fetching subject list.

Change Summary

差異

--- bchanl/trunk/src/subjectretriever.c (revision 607)
+++ bchanl/trunk/src/subjectretriever.c (revision 608)
@@ -1,7 +1,7 @@
11 /*
22 * subjectretriever.c
33 *
4- * Copyright (c) 2009-2012 project bchan
4+ * Copyright (c) 2009-2014 project bchan
55 *
66 * This software is provided 'as-is', without any express or implied
77 * warranty. In no event will the authors be held liable for any damages
@@ -201,6 +201,7 @@
201201 } else if (hevent->type == HTTP_CONNECTOR_EVENTTYPE_ERROR) {
202202 http_connector_deleteendpoint(connector, hevent->endpoint);
203203 retriever->endpoint = -1;
204+ return SBJTRETRIEVER_REQUEST_ERROR;
204205 } else {
205206 /* error */
206207 return -1;
--- bchanl/trunk/src/subjectretriever.h (revision 607)
+++ bchanl/trunk/src/subjectretriever.h (revision 608)
@@ -1,7 +1,7 @@
11 /*
22 * subjectretriever.h
33 *
4- * Copyright (c) 2009-2012 project bchan
4+ * Copyright (c) 2009-2014 project bchan
55 *
66 * This software is provided 'as-is', without any express or implied
77 * warranty. In no event will the authors be held liable for any damages
@@ -39,6 +39,7 @@
3939 IMPORT Bool sbjtretriever_iswaitingendpoint(sbjtretriever_t *retriever, ID endpoint);
4040 IMPORT W sbjtretriever_recievehttpevent(sbjtretriever_t *retriever, sbjtcache_t *cache, http_connector_event *hevent);
4141
42+#define SBJTRETRIEVER_REQUEST_ERROR -1
4243 #define SBJTRETRIEVER_REQUEST_NOT_MODIFIED 0
4344 #define SBJTRETRIEVER_REQUEST_ALLRELOAD 1
4445 #define SBJTRETRIEVER_REQUEST_WAITNEXT 2
Show on old repository browser