http handle empty packet
This commit is contained in:
parent
8e007f199b
commit
91092cb909
|
@ -293,6 +293,11 @@ int32_t httpSendQuit() {
|
||||||
|
|
||||||
static int32_t taosSendHttpReportImpl(const char* server, const char* uri, uint16_t port, char* pCont, int32_t contLen,
|
static int32_t taosSendHttpReportImpl(const char* server, const char* uri, uint16_t port, char* pCont, int32_t contLen,
|
||||||
EHttpCompFlag flag) {
|
EHttpCompFlag flag) {
|
||||||
|
if (contLen == 0) {
|
||||||
|
tError("http-report failed to report empty packet");
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
SHttpModule* load = taosAcquireRef(httpRefMgt, httpRef);
|
SHttpModule* load = taosAcquireRef(httpRefMgt, httpRef);
|
||||||
if (load == NULL) {
|
if (load == NULL) {
|
||||||
tError("http-report already released");
|
tError("http-report already released");
|
||||||
|
|
Loading…
Reference in New Issue