2020-8-10 IO流_01

Throwable:

成员方法:

1.getMessage():获取异常信息,返回字符串;

2.toString():获取异常类名和异常信息,返回字符串;

3.printStackTrace():获取异常类名和异常信息,以及异常出现在程序中的位置,返回值void;

4.printStackTrace(PrintStream s):通常用该方法将异常内容保存在日志文件中以便查阅;

throws:

概述:

定义功能方法时,需要把出现的问题暴露出来让调用者来处理,那么就通过throws在方法上标识;

格式:

throws 异常类名;

注意:尽量不要在main方法上抛出异常;

编译异常抛出,将来调用者必须处理,运行异常抛出,将来调用者可以不必处理;

throw:

概述:

在功能方法内部出现某种情况,程序不能继续运行,需要跳转时,就用throw把异常抛出;(这个时候抛出的是异常的对象);

throw和throws的区别:

throws:

用在方法声明里面,跟的是异常类名;

可以跟多个异常类名,用逗号隔开;

表示抛出异常,由该方法的调用者来处理;

throws表示出现异常的一种可能性,并不一定会发生这些异常;

throw:

用在方法体内,跟的是异常对象名;

只能抛出一个异常对象名;

表示抛出异常,由方法体内的语句处理;

throw则是抛出了异常,执行throw则一定抛出了某种异常;

如何处理异常:

原则:

如果改功能内部可以将问题处理,用try,如果处理不了,交由调用者处理,这是用throws;

区别:

后续程序需要继续运行就try;

后续程序不需要继续运行就throws;

finally的特点作用:

特点:

被finally控制的语句体一定会执行;

特殊情况;在执行到finally之前jvm退出了(比如System.exit(0));

作用:

用于释放资源,在IO流操作和数据库操作中会见到;

final,finally,finalize的区别:

final:修饰符;

finally:是异常处理的一部分,用于释放资源;

finalize:垃圾回收;

如果catch里有return语句,finally语句是否执行,执行时实在return前还是后;

会,前;

try…catch…finally的变种:

1.try....catch.....catch.....finally;

2.try...finally(释放资源);

自定义异常:

继承自Exception;

继承自RuntimeException;

异常注意事项:

1.子类重写父类方法时,子类的方法必须抛出与父类相同的异常,或是父类异常的子类异常;

2.如果父类抛出了多个异常,子类重写父类时,只能抛出相同的异常或是它的子集,不能抛出父类没有的异常;

3.如果被重写的方法没有异常抛出,那么子类的方法绝不可以抛出异常,如果子类方法内有异常,那么子类只有try,不能throws;

File类:

文件和目录路径名的抽象表现形式(将文件目录路径名封装成对象):

构造对象:

1.public File(Strign pathname);

2.public File(String parent,String child);

3.public File(File parent,String child);

成员方法:

添加功能:

1.public boolean createNewFile():创建文件;

2.public boolean mkdir():创建文件夹;

3.public boolean mkdirs():创建多级文件夹;

4.public boolean delete():删除文件,不走回收站;

5.public boolean renameTo(File dest):重命名,如果调用文件对象和指定文件对象路径名相同,则重命名,不同,则剪切到指定文件路径并重命名;

判断功能:

1.public boolean isDirectory():判断是否是目录;

2.public boolean isFile():判断是否是文件;

3.public boolean exists():判断是否存在;

4.public boolean canRead():判断是否可读;

5,public boolean canWrite():判断是否可写;

6.public boolean isHidden():判断是否隐藏;

获取功能:

1.public String gerAbsolutePath():获取绝对路径;

2.public String getPath():获取相对路径;

3.public String getName():获取名称;

4.public long length():获取字节数;

5.public long lastModefied():获取最后一次的修改时间,毫秒值;
高级获取:
1.public String[] list():返回一个字符串数组,文件和目录的名称;

2.public File[] listFiles():获取指定目录下的所有文件或文件夹的File数组;

文件名称过滤器:

1.public String[] list(FilenameFilter filter);

2.public File[] listFiles(FilenameFilter filter);

可通过匿名内部类new filter 重写方法来过滤文件名,return true代表未过滤,return false代表成功过滤;(此处的过滤理解成过滤豆浆,你想要的没有被过滤掉,不想要的被过滤掉);

递归:

方法定义中调用方法本身的现象;

注意:

要有出口,不然就是死递归;

次数不能太多,否则就内存溢出:

构造方法不能递归使用;

例子:不死神兔(名字不是我起的QWQ):

有一对兔子,从出生后第三个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问第二十个月的兔子对数为多少?

本质是斐波那契数列,我们可以找到规律;

第一个月:1对;

第二个月:1队;

第三个月:2对;

第四个月:3对;

第四个月:5对;
		.
		.
		.
		.

不难发现,从第三个月开始,每个月兔子的对数都是前两个月兔子数目相加得到,不信邪的可以一直递推到20qwq;

假设函数f(n)表示第n个月的兔子,那么f(n)=f(n-1)+f(n-2),当然n是大于2的;

下面我们用代码来实现;

public static int(返回兔子对数) getNum(int n(表示月数)){

	if(n==1||n==2){
	
		return 1;
		
}else {

		return f(n-1)+f(n-2);

}

}

关于n是负数这里我就不判断了,在这里手打代码可太累了QAQ;

根据httpd模块中http/https服务还有onvif模块事件服务的实现,原onvif模块只支持http不支持https,所以我给该模块提供了tls支持,已经对代码做了一些修改,目前事件订阅上pull-point正常但是basic-notify接口测试不通过,为什么其他功能都正常唯独basic notify会报错?为什么http连接下basic notify接口测试正常但是https连接下会报错?能不能详细分析一下pull-point和basic-notify的处理程?以及究竟是什么地方出了问题会导致该错误?不能分析出具体原因的话也请给出详细的调试方法(比如说应该在什么地方/步骤加log),以下分别为http和https连接下basic notify接口测试时终端的log: [2025-10-25 21:31:32] [ERROR] http_handle():554 - [HTTPD]HTTP_HANDLE [2025-10-25 21:31:32] [ERROR] socket_handle():446 - [HTTPD]SOCKET_HANDLE STRAT [2025-10-25 21:31:32] [ERROR] socket_handle():447 - [HTTPD]sock: 36 [2025-10-25 21:31:32] [ERROR] socket_handle():543 - [HTTPD]SOCKET_HANDLE SUCCESS [2025-10-25 21:31:32] [ERROR] match_group_port():157 - [HTTPD]match_group_port: port=2020, group=3 [2025-10-25 21:31:32] [ERROR] http_post_handle():2321 - [HTTPD]http_post_handle [2025-10-25 21:31:32] [ERROR] onvif_proc_data_srv():380 - [ONVIF]context->is_https = 0, context->is_ssl_success = 0 [2025-10-25 21:31:32] [ERROR] onvif_proc_data_srv():411 - [ONVIF]not digest header [2025-10-25 21:31:32] [ERROR] onvif_proc_data_srv():457 - [ONVIF]soap->is_https = 0 [2025-10-25 21:31:32] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: Type [2025-10-25 21:31:32] [ERROR] soap_out_tds_get_services_rsp():264 - [ONVIF]x_addr:http://192.168.137.165:2020/onvif/service [2025-10-25 21:31:32] [ERROR] onvif_make_response():529 - [ONVIF]context->is_https = 0 [2025-10-25 21:31:32] [ERROR] onvif_make_response():559 - [ONVIF]Onvif_make_response return onvif_send_http_rsp_packet. [2025-10-25 21:31:32] [ERROR] http_send_onvif_rsp_header():91 - [ONVIF]HTTP Response Header: HTTP/1.1 200 OK Connection: close Content-Type: application/soap+xml; charset=utf-8 Content-Length: 3351 [2025-10-25 21:31:32] [ERROR] http_send_block():163 - [HTTPD]Use HTTP [2025-10-25 21:31:32] [ERROR] http_send_onvif_content():140 - [ONVIF]ONVIF Message Content (Length: 3351): <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>http://192.168.137.165:2020/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> [2025-10-25 21:31:32] [ERROR] http_send_block():163 - [HTTPD]Use HTTP [2025-10-25 21:31:32] tcp_connect_timeout_handle():548 - [tpssl][89366.535]ip:3.0.247.235 ssl connecting --> ssl connected. [2025-10-25 21:31:32] [ERROR] http_handle():554 - [HTTPD]HTTP_HANDLE [2025-10-25 21:31:32] [ERROR] socket_handle():446 - [HTTPD]SOCKET_HANDLE STRAT [2025-10-25 21:31:32] [ERROR] socket_handle():447 - [HTTPD]sock: 36 [2025-10-25 21:31:32] [ERROR] socket_handle():543 - [HTTPD]SOCKET_HANDLE SUCCESS [2025-10-25 21:31:32] [ERROR] match_group_port():157 - [HTTPD]match_group_port: port=2020, group=3 [2025-10-25 21:31:32] [ERROR][CloudIot]cloud_iot_ipc.c:3017(http_auth_recv_cb) - HTTP Status Code: 403, not OK payload: {"code":10006,"message":"[1b48a93361fc469286147e1c6d7eac4e.459.17613990931790477] your deviceId is invalid, or not registered in current tp-cloud, please check it"} [2025-10-25 21:31:32] [ERROR] http_auth_recv_cb():3145 - [CloudIot]http parse err: -2, retry 256s [2025-10-25 21:31:32] [ERROR][CloudIot]cloud_iot_ipc.c:3201(cloud_http_message_handler) - HTTP resp handle failed, reqType: 0. [2025-10-25 21:31:32] [ERROR] http_post_handle():2321 - [HTTPD]http_post_handle [2025-10-25 21:31:32] [ERROR] onvif_proc_data_srv():380 - [ONVIF]context->is_https = 0, context->is_ssl_success = 0 [2025-10-25 21:31:32] [ERROR] onvif_proc_data_srv():411 - [ONVIF]not digest header [2025-10-25 21:31:32] [ERROR] onvif_proc_data_srv():457 - [ONVIF]soap->is_https = 0 [2025-10-25 21:31:32] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: s:mustUnderstand [2025-10-25 21:31:32] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: Type [2025-10-25 21:31:32] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: s:mustUnderstand [ONVIF Test] Using third_account to auth [2025-10-25 21:31:32] [ERROR] soap_subscribe():1826 - [ONVIF]protocol = http, port = 2020 [2025-10-25 21:31:32] [ERROR] soap_subscribe():1832 - [ONVIF]prototol = http, port = 2020 [2025-10-25 21:31:32] [ERROR] onvif_make_response():529 - [ONVIF]context->is_https = 0 [2025-10-25 21:31:32] [ERROR] onvif_make_response():559 - [ONVIF]Onvif_make_response return onvif_send_http_rsp_packet. [2025-10-25 21:31:32] [ERROR] http_send_onvif_rsp_header():91 - [ONVIF]HTTP Response Header: HTTP/1.1 200 OK Connection: close Content-Type: application/soap+xml; charset=utf-8 Content-Length: 2272 [2025-10-25 21:31:32] [ERROR] http_send_block():163 - [HTTPD]Use HTTP [2025-10-25 21:31:32] [ERROR] http_send_onvif_content():140 - [ONVIF]ONVIF Message Content (Length: 2272): <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl"><SOAP-ENV:Header><wsa5:MessageID>urn:uuid:f8e1609a-f789-420a-8cf4-a6dbc2bbdb76</wsa5:MessageID><wsa5:To SOAP-ENV:mustUnderstand="true">http://192.168.137.165:2020/onvif/service</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="true">http://docs.oasis-open.org/wsn/bw-2/NotificationProducer/SubscribeResponse</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:SubscribeResponse><wsnt:SubscriptionReference><wsa5:Address>http://192.168.137.165:2020/event-0_2020</wsa5:Address></wsnt:SubscriptionReference><wsnt:CurrentTime>2025-10-25T13:31:32Z</wsnt:CurrentTime><wsnt:TerminationTime>2025-10-25T13:31:42Z</wsnt:TerminationTime></wsnt:SubscribeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> [2025-10-25 21:31:32] [ERROR] http_send_block():163 - [HTTPD]Use HTTP [2025-10-25 21:31:33] [ERROR] http_handle():554 - [HTTPD]HTTP_HANDLE [2025-10-25 21:31:33] [ERROR] socket_handle():446 - [HTTPD]SOCKET_HANDLE STRAT [2025-10-25 21:31:33] [ERROR] socket_handle():447 - [HTTPD]sock: 36 [2025-10-25 21:31:33] [ERROR] socket_handle():543 - [HTTPD]SOCKET_HANDLE SUCCESS [2025-10-25 21:31:33] [ERROR] match_group_port():157 - [HTTPD]match_group_port: port=2020, group=3 [2025-10-25 21:31:33] [ERROR] http_post_handle():2321 - [HTTPD]http_post_handle [2025-10-25 21:31:33] [ERROR] onvif_proc_data_srv():380 - [ONVIF]context->is_https = 0, context->is_ssl_success = 0 [2025-10-25 21:31:33] [ERROR] onvif_proc_data_srv():411 - [ONVIF]not digest header [2025-10-25 21:31:33] [ERROR] onvif_proc_data_srv():457 - [ONVIF]soap->is_https = 0 [2025-10-25 21:31:33] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: s:mustUnderstand [2025-10-25 21:31:33] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: Type [2025-10-25 21:31:33] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: s:mustUnderstand [ONVIF Test] Using third_account to auth [2025-10-25 21:31:33] [ERROR] onvif_make_response():529 - [ONVIF]context->is_https = 0 [2025-10-25 21:31:33] [ERROR] onvif_make_response():559 - [ONVIF]Onvif_make_response return onvif_send_http_rsp_packet. [2025-10-25 21:31:33] [ERROR] http_send_onvif_rsp_header():91 - [ONVIF]HTTP Response Header: HTTP/1.1 200 OK Connection: close Content-Type: application/soap+xml; charset=utf-8 Content-Length: 2028 [2025-10-25 21:31:33] [ERROR] http_send_block():163 - [HTTPD]Use HTTP [2025-10-25 21:31:33] [ERROR] http_send_onvif_content():140 - [ONVIF]ONVIF Message Content (Length: 2028): <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl"><SOAP-ENV:Header><wsa5:MessageID>urn:uuid:29bf73e3-8e2b-4532-8989-4ad121a2dd10</wsa5:MessageID><wsa5:To SOAP-ENV:mustUnderstand="true">http://192.168.137.165:2020/event-0_2020</wsa5:To><wsa5:Action SOAP-ENV:mustUnderstand="true">http://docs.oasis-open.org/wsn/bw-2/SubscriptionManager/UnsubscribeResponse</wsa5:Action></SOAP-ENV:Header><SOAP-ENV:Body><wsnt:UnsubscribeResponse></wsnt:UnsubscribeResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> [2025-10-25 21:31:33] [ERROR] http_send_block():163 - [HTTPD]Use HTTP [2025-10-25 21:33:01] [ERROR] https_handle():568 - [HTTPD]HTTPS_HANDLE [2025-10-25 21:33:01] [ERROR] socket_handle():446 - [HTTPD]SOCKET_HANDLE STRAT [2025-10-25 21:33:01] [ERROR] socket_handle():447 - [HTTPD]sock: 30 [2025-10-25 21:33:01] [ERROR] socket_handle():543 - [HTTPD]SOCKET_HANDLE SUCCESS [2025-10-25 21:33:01] [ERROR] https_handle():604 - [HTTPD]ret = -0x6900 [2025-10-25 21:33:01] [ERROR] match_group_port():157 - [HTTPD]match_group_port: port=443, group=1 [2025-10-25 21:33:01] [ERROR] http_call_handle():353 - [HTTPD]is_https is 1, is_ssl_success is 0 [2025-10-25 21:33:01] [ERROR] http_call_handle():357 - [HTTPD]ssl handshake fail, ssl handshake num 0, continue. [2025-10-25 21:33:01] [ERROR] http_read_line():1018 - [HTTPD]http_recv_block fail, ret: RESERVE. [2025-10-25 21:33:01] [ERROR] http_call_handle():377 - [HTTPD]context parser reserve. [2025-10-25 21:33:01] [ERROR] http_post_handle():2321 - [HTTPD]http_post_handle [2025-10-25 21:33:01] [ERROR] http_post_handle():2471 - [HTTPD]context->group_srv = GROUP_ONVIF_HTTPS [2025-10-25 21:33:01] [ERROR] http_post_handle():2472 - [HTTPD]Request form 443 to onvif [2025-10-25 21:33:01] [ERROR] onvif_proc_data_srv():380 - [ONVIF]context->is_https = 1, context->is_ssl_success = 1 [2025-10-25 21:33:01] [ERROR] onvif_proc_data_srv():383 - [ONVIF]SSL handshake sUccess [2025-10-25 21:33:01] [ERROR] onvif_proc_data_srv():411 - [ONVIF]not digest header [2025-10-25 21:33:01] [ERROR] onvif_proc_data_srv():457 - [ONVIF]soap->is_https = 1 [2025-10-25 21:33:01] [ERROR] soap_get_namespace():460 - [ONVIF]Not a namespace: Type [2025-10-25 21:33:01] [ERROR] soap_out_tds_get_services_rsp1():370 - [ONVIF]x_addr:https://192.168.137.165:443/onvif/service [2025-10-25 21:33:01] [ERROR] onvif_make_response():529 - [ONVIF]context->is_https = 1 [2025-10-25 21:33:01] [ERROR] onvif_make_response():559 - [ONVIF]Onvif_make_response return onvif_send_http_rsp_packet. [2025-10-25 21:33:01] [ERROR] http_send_onvif_rsp_header():91 - [ONVIF]HTTP Response Header: HTTP/1.1 200 OK Connection: close Content-Type: application/soap+xml; charset=utf-8 Content-Length: 3351 [2025-10-25 21:33:01] [ERROR] http_send_block():146 - [HTTPD]Use HTTPS [2025-10-25 21:33:01] [ERROR] http_send_onvif_content():140 - [ONVIF]ONVIF Message Content (Length: 3351): <?xml version="1.0" encoding="UTF-8"?> <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://www.w3.org/2003/05/soap-envelope" xmlns:SOAP-ENC="http://www.w3.org/2003/05/soap-encoding" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:wsa="http://schemas.xmlsoap.org/ws/2004/08/addressing" xmlns:wsdd="http://schemas.xmlsoap.org/ws/2005/04/discovery" xmlns:chan="http://schemas.microsoft.com/ws/2005/02/duplex" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" xmlns:wsa5="http://www.w3.org/2005/08/addressing" xmlns:xmime="http://tempuri.org/xmime.xsd" xmlns:xop="http://www.w3.org/2004/08/xop/include" xmlns:wsrfbf="http://docs.oasis-open.org/wsrf/bf-2" xmlns:wstop="http://docs.oasis-open.org/wsn/t-1" xmlns:wsrfr="http://docs.oasis-open.org/wsrf/r-2" xmlns:wsnt="http://docs.oasis-open.org/wsn/b-2" xmlns:tt="http://www.onvif.org/ver10/schema" xmlns:ter="http://www.onvif.org/ver10/error" xmlns:tns1="http://www.onvif.org/ver10/topics" xmlns:tds="http://www.onvif.org/ver10/device/wsdl" xmlns:tmd="http://www.onvif.org/ver10/deviceIO/wsdl" xmlns:trt="http://www.onvif.org/ver10/media/wsdl" xmlns:tev="http://www.onvif.org/ver10/events/wsdl" xmlns:tdn="http://www.onvif.org/ver10/network/wsdl" xmlns:timg="http://www.onvif.org/ver20/imaging/wsdl" xmlns:trp="http://www.onvif.org/ver10/replay/wsdl" xmlns:tan="http://www.onvif.org/ver20/analytics/wsdl" xmlns:tptz="http://www.onvif.org/ver20/ptz/wsdl"><SOAP-ENV:Header></SOAP-ENV:Header><SOAP-ENV:Body><tds:GetServicesResponse><tds:Service><tds:Namespace>http://www.onvif.org/ver10/device/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/media/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/events/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/analytics/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/imaging/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver20/ptz/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service><tds:Service><tds:Namespace>http://www.onvif.org/ver10/deviceIO/wsdl</tds:Namespace><tds:XAddr>https://192.168.137.165:443/onvif/service</tds:XAddr><tds:Version><tt:Major>2</tt:Major><tt:Minor>20</tt:Minor></tds:Version></tds:Service></tds:GetServicesResponse></SOAP-ENV:Body></SOAP-ENV:Envelope> [2025-10-25 21:33:02] [ERROR] http_send_block():146 - [HTTPD]Use HTTPS [2025-10-25 21:33:02] [ERROR] https_handle():568 - [HTTPD]HTTPS_HANDLE [2025-10-25 21:33:02] [ERROR] socket_handle():446 - [HTTPD]SOCKET_HANDLE STRAT [2025-10-25 21:33:02] [ERROR] socket_handle():447 - [HTTPD]sock: 30 [2025-10-25 21:33:02] [ERROR] socket_handle():543 - [HTTPD]SOCKET_HANDLE SUCCESS [2025-10-25 21:33:02] [ERROR] https_handle():604 - [HTTPD]ret = -0x6900 [2025-10-25 21:33:02] [ERROR] match_group_port():157 - [HTTPD]match_group_port: port=443, group=1 [2025-10-25 21:33:02] [ERROR] http_call_handle():353 - [HTTPD]is_https is 1, is_ssl_success is 0 [2025-10-25 21:33:02] [ERROR] http_call_handle():357 - [HTTPD]ssl handshake fail, ssl handshake num 0, continue. [2025-10-25 21:33:02] [ERROR] http_call_handle():366 - [HTTPD]tpssl_svr_handshake err ret: -0x7900, free context. [2025-10-25 21:33:03] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:05] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:07] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:08] [ERROR] wlan_timer_handle():3229 - detect wlan0 bridging, no need to handle! [2025-10-25 21:33:09] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:11] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:13] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:15] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:17] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:19] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:21] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:23] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:25] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:27] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:29] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:31] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:32] [ERROR] https_handle():568 - [HTTPD]HTTPS_HANDLE [2025-10-25 21:33:32] [ERROR] socket_handle():446 - [HTTPD]SOCKET_HANDLE STRAT [2025-10-25 21:33:32] [ERROR] socket_handle():447 - [HTTPD]sock: 30 [2025-10-25 21:33:32] [ERROR] socket_handle():543 - [HTTPD]SOCKET_HANDLE SUCCESS [2025-10-25 21:33:32] [ERROR] https_handle():604 - [HTTPD]ret = -0x6900 [2025-10-25 21:33:32] [ERROR] match_group_port():157 - [HTTPD]match_group_port: port=443, group=1 [2025-10-25 21:33:32] [ERROR] http_call_handle():353 - [HTTPD]is_https is 1, is_ssl_success is 0 [2025-10-25 21:33:32] [ERROR] http_call_handle():357 - [HTTPD]ssl handshake fail, ssl handshake num 0, continue. [2025-10-25 21:33:32] [ERROR] http_call_handle():366 - [HTTPD]tpssl_svr_handshake err ret: -0x7900, free context. [2025-10-25 21:33:33] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:35] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:37] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200 [2025-10-25 21:33:39] [ERROR][tapoCare]tapo_care.c:275(attach_tapocare_ringbuffer) - ringbuffer_attach error: rb_id:10200
10-27
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值