java httpsserver访问慢问题
https server访问满问题
查看线程
"Thread-2" prio=10 tid=0x00007f9a901a2800 nid=0x878 runnable [0x00007f9a4b2d2000]
java.lang.Thread.State: RUNNABLE
at java.net.Inet6AddressImpl.getHostByAddr(Native Method)
at java.net.InetAddress$1.getHostByAddr(Unknown Source)
at java.net.InetAddress.getHostFromNameService(Unknown Source)
at java.net.InetAddress.getHostName(Unknown Source)
at java.net.InetAddress.getHostName(Unknown Source)
at java.net.InetSocketAddress.getHostName(Unknown Source)
at sun.net.httpserver.SSLStreams.<init>(Unknown Source)
at sun.net.httpserver.ServerImpl$Exchange.run(Unknown Source)
at sun.net.httpserver.ServerImpl$DefaultExecutor.execute(Unknown Source)
at sun.net.httpserver.ServerImpl$Dispatcher.handle(Unknown Source)
at sun.net.httpserver.ServerImpl$Dispatcher.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
在www.docjar.com网站下载SSLStreams源码
修改getHostName为getHostAddress
编译后替换所有生成的class文件
或者使用SSLServerSocket解决
posted on 2015-06-18 12:49 renshaoping 阅读(1361) 评论(0) 编辑 收藏 举报
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】凌霞软件回馈社区,博客园 & 1Panel & Halo 联合会员上线
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】博客园社区专享云产品让利特惠,阿里云新客6.5折上折
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步