zoukankan      html  css  js  c++  java
  • 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解决

  • 相关阅读:
    oracle11g expdp/impdp数据库
    SqlServer触发器
    tomcat8.5.20配置https
    oracle常用函数积累
    Eclipse 搭建tomcat+动态项目完整版
    Windows7下ftp服务器
    Orcle定时生成表数据作业
    Oracle将一列值逗号拼接wm_concat函数
    Oracle表空间 ORA-01653:
    node+mongodb+ionic+cordova
  • 原文地址:https://www.cnblogs.com/rspb/p/4585564.html
Copyright © 2011-2022 走看看