ssh_exchange: read: Connection reset by peer 5C

git clone 时报错:ssh_exchange_identification: read: Connection reset by peer

可以ssh访问远程服务器,能访问其他的类git,就是访问github的时候会报错。我确定已经把public key上传到github了。

从网上找了各种办法,尝试结果均无效。希望各路大神能帮忙解决一下。

 ssh -T git@github.com -vvv
OpenSSH_6.9p1, LibreSSL 2.1.8
debug1: Reading configuration data /Users/XXX/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 21: Applying options for *
debug2: ssh_connect: needpriv 0
debug1: Connecting to github.com [192.30.253.112] port 22.
debug1: Connection established.
debug1: identity file /Users/XXX/.ssh/id_rsa type 1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /Users/XXX/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
ssh_exchange_identification: read: Connection reset by peer

ssh-add -l
2048 SHA256:og75aUEa+XXXXXX+CQ6HdvIj8yk6E/A9KFQ /Users/left/.ssh/id_rsa (RSA)

2个回答

Connection reset by peer 连接被重置,一般是网络问题,特别是公司网络内,很多公司为了资料外流,会对有存储功能的网址或者操作进行控制
可以咨询下网管

leftwukaixing
昵称居然已经存在了 周围人的都可以,就我的不行。
一年多之前 回复

从日志上看,密钥还是不对呢。确认一下copy是否有问题,还有当前用户名是否一致。

leftwukaixing
昵称居然已经存在了 比对过md5值,确定密钥是对的,用户名也是对的
一年多之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
Java TCP控制投影机出现 Connection reset by peer: socket write error ?
1:Java tcp 在控制DP投影机时出现 Connection reset by peer: socket write error 2:关于这个问题从网上查了许多,没有准确的解决办法,本人代码中把该关闭的流全部关闭,socket也已经close掉了,第一遍在开启和关闭投影机时是正常的,可是第二遍之后就不正常了,抛出异常Connection reset by peer: socket write error,经过循环测试,发现在第12次开启和关闭又正常(一次性的开机关机),这就很难懂为什么了。。。 3:由于代码比较过,没有贴上代码,本人TCP代码就是常规的socket,没有做特殊的技术上优化,有没有大神能够给予一些指导意见。。在线等。。。
Connection reset by peer: socket write error
Caused by: org.springframework.dao.DataAccessResourceFailureException: ### Error querying database. Cause: java.sql.SQLException: Io 异常: Connection reset by peer: socket write error ### The error may exist in cn/zgjkw/mtc/dao/IpDatCountMapper.xml ### The error may involve cn.zgjkw.mtc.dao.IpDatCountMapper.selectByExample ### The error occurred while executing a query ### SQL: select ip, dat, num from ip_dat_count WHERE ( dat = ? and ip = ? ) ### Cause: java.sql.SQLException: Io 异常: Connection reset by peer: socket write error ; SQL []; Io 异常: Connection reset by peer: socket write error; nested exception is java.sql.SQLException: Io 异常: Connection reset by peer: socket write error at org.springframework.jdbc.support.SQLErrorCodeSQLExceptionTranslator.doTranslate(SQLErrorCodeSQLExceptionTranslator.java:253) at org.springframework.jdbc.support.AbstractFallbackSQLExceptionTranslator.translate(AbstractFallbackSQLExceptionTranslator.java:72) at org.mybatis.spring.MyBatisExceptionTranslator.translateExceptionIfPossible(MyBatisExceptionTranslator.java:71) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:346) at $Proxy9.selectList(Unknown Source) at org.mybatis.spring.SqlSessionTemplate.selectList(SqlSessionTemplate.java:189) at org.apache.ibatis.binding.MapperMethod.executeForList(MapperMethod.java:85) at org.apache.ibatis.binding.MapperMethod.execute(MapperMethod.java:65) at org.apache.ibatis.binding.MapperProxy.invoke(MapperProxy.java:38) at $Proxy89.selectByExample(Unknown Source) at cn.zgjkw.mtc.service.JkwUserService.welcome(JkwUserService.java:191) at cn.zgjkw.mtc.service.JkwUserService$$FastClassByCGLIB$$de1aeb67.invoke(<generated>) at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149) at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:617) at cn.zgjkw.mtc.service.JkwUserService$$EnhancerByCGLIB$$ea217490.welcome(<generated>) ... 19 more Caused by: java.sql.SQLException: Io 异常: Connection reset by peer: socket write error at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:179) at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:333) at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:389) at oracle.jdbc.driver.OracleStatement.<init>(OracleStatement.java:413) at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:119) at oracle.jdbc.driver.OraclePreparedStatement.<init>(OraclePreparedStatement.java:92) at oracle.jdbc.driver.OracleConnection.privatePrepareStatement(OracleConnection.java:950) at oracle.jdbc.driver.OracleConnection.prepareStatement(OracleConnection.java:802) at org.apache.commons.dbcp.DelegatingConnection.prepareStatement(DelegatingConnection.java:281) at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.prepareStatement(PoolingDataSource.java:313) at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.apache.ibatis.logging.jdbc.ConnectionLogger.invoke(ConnectionLogger.java:35) at $Proxy112.prepareStatement(Unknown Source) at org.apache.ibatis.executor.statement.PreparedStatementHandler.instantiateStatement(PreparedStatementHandler.java:50) at org.apache.ibatis.executor.statement.BaseStatementHandler.prepare(BaseStatementHandler.java:64) at org.apache.ibatis.executor.statement.RoutingStatementHandler.prepare(RoutingStatementHandler.java:39) at org.apache.ibatis.executor.SimpleExecutor.prepareStatement(SimpleExecutor.java:55) at org.apache.ibatis.executor.SimpleExecutor.doQuery(SimpleExecutor.java:40) at org.apache.ibatis.executor.BaseExecutor.queryFromDatabase(BaseExecutor.java:216) at org.apache.ibatis.executor.BaseExecutor.query(BaseExecutor.java:95) at org.apache.ibatis.executor.CachingExecutor.query(CachingExecutor.java:72) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:75) at org.apache.ibatis.session.defaults.DefaultSqlSession.selectList(DefaultSqlSession.java:69) at sun.reflect.GeneratedMethodAccessor41.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.mybatis.spring.SqlSessionTemplate$SqlSessionInterceptor.invoke(SqlSessionTemplate.java:338) ... 30 more
nginx报错104: Connection reset by peer
错误提示:recv() failed (104: Connection reset by peer) while reading response header from upstream 按照网上的办法操作过还是如此: linux 2核 4G内存 php-fpm: pm.max_requests = 500 request_terminate_timeout = 0 pm.max_children = 100 php.ini memory_limit = 128M max_execution_time = 60 重启php还是报错
redis 图形化监控界面 之 redis-browser 安装
在安装redis-brower过程中,遇到 该问题 ,请问如何解决?? gem install redis-browser ERROR: Could not find a valid gem 'redis-browser' (>= 0), here is why: Unable to download data from https://rubygems.org/ - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz) Unable to download data from https://rubygems.org - Errno::ECONNRESET: Connection reset by peer - SSL_connect (https://rubygems.org/latest_specs.4.8.gz) Unable to download data from http://ruby.taobao.org/ - bad response Not Found 404 (http://ruby.taobao.org/latest_specs.4.8.gz)
centos 6.5 双网卡 vpn 连接不上
配置好vpn客户端后,使用pppd call connectvpn后,使用ps -ef|grep pppd,能看到相应的进程,使用ifconfig 看不到网络连接。过一会进程退出。 查看 /var/log/messages 信息为 Using interface ppp0 Sep 7 10:22:09 iZ23so71psiZ pppd[30764]: Connect: ppp0 <--> /dev/pts/1 Sep 7 10:22:09 iZ23so71psiZ pptp[30765]: anon log[main:pptp.c:314]: The synchronous pptp option is NOT activated Sep 7 10:22:09 iZ23so71psiZ pptp[30773]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request' Sep 7 10:22:09 iZ23so71psiZ pptp[30773]: anon log[ctrlp_disp:pptp_ctrl.c:739]: Received Start Control Connection Reply Sep 7 10:22:09 iZ23so71psiZ pptp[30773]: anon log[ctrlp_disp:pptp_ctrl.c:773]: Client connection established. Sep 7 10:22:10 iZ23so71psiZ pptp[30773]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request' Sep 7 10:22:10 iZ23so71psiZ pptp[30773]: anon log[ctrlp_disp:pptp_ctrl.c:858]: Received Outgoing Call Reply. Sep 7 10:22:10 iZ23so71psiZ pptp[30773]: anon log[ctrlp_disp:pptp_ctrl.c:897]: Outgoing call established (call ID 0, peer's call ID 11398). Sep 7 10:22:40 iZ23so71psiZ pppd[30764]: LCP: timeout sending Config-Requests Sep 7 10:22:40 iZ23so71psiZ pppd[30764]: Connection terminated. Sep 7 10:22:40 iZ23so71psiZ pppd[30764]: Modem hangup Sep 7 10:22:40 iZ23so71psiZ pptp[30765]: anon warn[decaps_hdlc:pptp_gre.c:204]: short read (-1): Input/output error Sep 7 10:22:40 iZ23so71psiZ pptp[30765]: anon warn[decaps_hdlc:pptp_gre.c:216]: pppd may have shutdown, see pppd log Sep 7 10:22:40 iZ23so71psiZ pptp[30773]: anon log[callmgr_main:pptp_callmgr.c:234]: Closing connection (unhandled) Sep 7 10:22:40 iZ23so71psiZ pppd[30764]: Exit. Sep 7 10:22:40 iZ23so71psiZ pptp[30773]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request' Sep 7 10:22:40 iZ23so71psiZ pptp[30773]: anon log[call_callback:pptp_callmgr.c:79]: Closing connection (call state)
solr 出现'Failure when receiving data from the peer
windows 10 php5.3.38 索引数据时出现以下错误 SolrClientException Object ( [message:protected] => Solr HTTP Error 56: 'Failure when receiving data from the peer' [string:Exception:private] => [code:protected] => 1004 [file:protected] => D:\www\www.oyys-b2b.com\oyys\orm\product_class.php [line:protected] => 710 [trace:Exception:private] => Array ( [0] => Array ( [file] => D:\www\www.oyys-b2b.com\oyys\orm\product_class.php [line] => 710 [function] => addDocuments [class] => SolrClient [type] => -> [args] => Array ( [0] => Array ( [0] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 24465 ) [1] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 5706 ) [2] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 28146 ) [3] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 23282 ) [4] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 16828 ) [5] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 9962 ) [6] => SolrInputDocument Object ( [_hashtable_index:SolrInputDocument:private] => 492 ) ) ) ) [1] => Array ( [file] => D:\www\www.oyys-b2b.com\index.php [line] => 6 [function] => indexAll [class] => Product [type] => -> [args] => Array ( ) ) ) [previous:Exception:private] => [sourceline:protected] => 447 [sourcefile:protected] => ext\solr\solr_functions_client.c [zif_name:protected] => solr_make_request ) 利用的是php_solr.dll 扩展 有人遇到或者能指点下吗?
板子上的xl2tpd客户端连接xl2tpd的vpn server,总是连接不上?
我在amlogic板子上,板子上为android系统,交叉编译xl2tpd,然后push到板子上,配置好相关配置文件,运行xl2tpd, 去连接ubantu14.04上的vpn server,vpn server使用的也是xl2tpd, 我用手机或另外一台ubantu系统都可以连接,运行板子上的xl2tpd,echo "c testvpn" > /var/run/xl2tpd/l2tp-control, ifconfig查看并没有ppp0节点,vpn server上的/var/log/syslog文件内容如下: Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 2974 twice, ignoring second one. Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 1, expected 5) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 2, expected 5) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 3, expected 5) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:44 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 4, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 2974 twice, ignoring second one. Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 1, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 2, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 3, expected 5) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 30468 in tunnel 46002#012 (ref=0/0) Sep 29 10:45:45 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 2974 (got 4, expected 5) Sep 29 10:45:46 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 46002, Remote: 2974 Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:47 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:48 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:49 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 46002 (refhim=0) Sep 29 10:45:50 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 46002 Dumping. Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 41944, Remote: 5337 (ref=0/0). LNS session is 'default' Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 38207, Remote: 31800, Serial: 343 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: pppd 2.4.5 started by root, uid 0 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: using channel 195 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Using interface ppp0 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xd6c18db4> <pcomp> <accomp>] Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 343 () Sep 29 10:45:52 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 22975 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Terminating on signal 15 Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Modem hangup Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Connection terminated. Sep 29 10:45:52 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:45:52 xxx-HP-Pro-3340-MT pppd[22975]: Exit. Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:53 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:54 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:55 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 5337 twice, ignoring second one. Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 1, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 2, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 3, expected 5) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 38207 in tunnel 41944#012 (ref=0/0) Sep 29 10:45:56 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 5337 (got 4, expected 5) Sep 29 10:45:57 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 41944, Remote: 5337 Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:58 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:45:59 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:00 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 41944 (refhim=0) Sep 29 10:46:01 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 41944 Dumping. Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 22881, Remote: 32980 (ref=0/0). LNS session is 'default' Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 45526, Remote: 63226, Serial: 345 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: pppd 2.4.5 started by root, uid 0 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: using channel 196 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Using interface ppp0 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0x7207f195> <pcomp> <accomp>] Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 345 () Sep 29 10:46:03 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 23034 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Terminating on signal 15 Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Modem hangup Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Connection terminated. Sep 29 10:46:03 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:03 xxx-HP-Pro-3340-MT pppd[23034]: Exit. Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:04 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:05 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:06 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 32980 twice, ignoring second one. Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 1, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 2, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 3, expected 5) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 45526 in tunnel 22881#012 (ref=0/0) Sep 29 10:46:07 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 32980 (got 4, expected 5) Sep 29 10:46:08 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 22881, Remote: 32980 Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:09 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:10 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:11 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 22881 (refhim=0) Sep 29 10:46:12 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 22881 Dumping. Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 11403, Remote: 49957 (ref=0/0). LNS session is 'default' Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 6309, Remote: 43705, Serial: 347 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: pppd 2.4.5 started by root, uid 0 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: using channel 197 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Using interface ppp0 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0xb37e2afa> <pcomp> <accomp>] Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 347 () Sep 29 10:46:14 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 23103 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Terminating on signal 15 Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Modem hangup Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Connection terminated. Sep 29 10:46:14 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:14 xxx-HP-Pro-3340-MT pppd[23103]: Exit. Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:15 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:16 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:17 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 49957 twice, ignoring second one. Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 1, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 2, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 3, expected 5) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 6309 in tunnel 11403#012 (ref=0/0) Sep 29 10:46:18 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 49957 (got 4, expected 5) Sep 29 10:46:19 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 11403, Remote: 49957 Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:20 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:21 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:22 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:23 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:24 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 11403 (refhim=0) Sep 29 10:46:24 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 11403 Dumping. Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: Connection established to 172.16.58.153, 1701. Local: 51132, Remote: 62657 (ref=0/0). LNS session is 'default' Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Warning: Peer did not specify transmit speed Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: start_pppd: I'm running: Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/usr/sbin/pppd" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "passive" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "nodetach" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "172.16.58.156:172.16.58.4" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "refuse-pap" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "auth" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "require-chap" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "debug" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "file" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/etc/ppp/options.xl2tpd" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: "/dev/pts/17" Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: Call established with 172.16.58.153, Local: 22234, Remote: 37513, Serial: 350 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: pppd 2.4.5 started by root, uid 0 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: using channel 198 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Using interface ppp0 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Connect: ppp0 <--> /dev/pts/17 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: sent [LCP ConfReq id=0x1 <mru 1200> <asyncmap 0x0> <auth chap MD5> <magic 0x44d4c5a7> <pcomp> <accomp>] Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices added (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: device added (path: /sys/devices/virtual/net/ppp0, iface: ppp0): no ifupdown configuration found. Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: <warn> /sys/devices/virtual/net/ppp0: couldn't determine device driver; ignoring... Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, serial 350 () Sep 29 10:46:25 xxx-HP-Pro-3340-MT xl2tpd[11194]: Terminating pppd: sending TERM signal to pid 23162 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Terminating on signal 15 Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Modem hangup Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Connection terminated. Sep 29 10:46:25 xxx-HP-Pro-3340-MT NetworkManager[717]: SCPlugin-Ifupdown: devices removed (path: /sys/devices/virtual/net/ppp0, iface: ppp0) Sep 29 10:46:25 xxx-HP-Pro-3340-MT pppd[23162]: Exit. Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:26 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:27 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:28 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Peer requested tunnel 62657 twice, ignoring second one. Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 1, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 2, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: handle_packet: bad control packet! Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 3, expected 5) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: get_call: can't find call 22234 in tunnel 51132#012 (ref=0/0) Sep 29 10:46:29 xxx-HP-Pro-3340-MT xl2tpd[11194]: check_control: Received out of order control packet on tunnel 62657 (got 4, expected 5) Sep 29 10:46:30 xxx-HP-Pro-3340-MT xl2tpd[11194]: control_finish: Connection closed to 172.16.58.153, port 1701 (Timeout), Local: 51132, Remote: 62657 Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0) Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 51132 Dumping. Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0) Sep 29 10:46:31 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 51132 Dumping. Sep 29 10:46:32 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0) Sep 29 10:46:32 xxx-HP-Pro-3340-MT xl2tpd[11194]: network_thread: unable to find call or tunnel to handle packet. call = 0, tunnel = 51132 Dumping. Sep 29 10:46:32 xxx-HP-Pro-3340-MT xl2tpd[11194]: Can not find tunnel 51132 (refhim=0)
MITM(中间人攻击)时经常出现Connection reset by peer和Connect timeout
利用Android VPNService,仿照某socks(科学)软件写的MITM(中间人攻击)程序,如下图 ![图片说明](https://img-ask.csdn.net/upload/201904/20/1555747966_117007.jpg) 现阶段APPS与MITM和MITM与Server之间的channel均能打通,仅做转发功能时能正常使用,但是会在log中看到 Connection reset by peer和Connection Timeout两种错误。 现阶段系统能够正常运行,APP也能正常工作,但是过一段时间后系统就停止工作,也没有任何日志信息,不知道是不是上述两个错误导致的? 在实际的生产中APP与服务器之间是否也经常出现Connection reset by peer和Connection Timeout两种错误呢?
关于LVS+KeepAlived,出现Connection reset by peer
我配置完LVS+KeepAlived之后(是一个socket服务的lvs集群),RS日志中总是不停的在出现java.io.IOException: Connection reset by peer错误 keepAlived配置如下: global_defs { lvs_id LVS_1 } vrrp_instance VI_1 { state MASTER interface eth0 lvs_sync_daemon_interface eth0 virtual_router_id 50 priority 100 advert_int 1 smtp_alert garp_master_delay 1 preempt_delay 1 authentication { auth_type PASS auth_pass 1111 } virtual_ipaddress { 172.16.212.130 } } virtual_server 172.16.212.130 8066 { delay_loop 5 lb_algo wrr lb_kind DR protocol TCP real_server 172.16.212.200 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.201 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.202 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.203 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.204 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.205 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.206 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } real_server 172.16.212.207 8066 { weight 1 TCP_CHECK { connect_timeout 3 nb_get_retry 3 delay_before_retry 3 connect_port 8066 } } }
android调webservice出现 (Connection reset by peer)
sunnyinfo.myapplication D/IOException: +++++++++++++++++++++++java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: java.net.SocketException: recvfrom failed: ECONNRESET (Connection reset by peer) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at libcore.io.IoBridge.maybeThrowAfterRecvfrom(IoBridge.java:592) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at libcore.io.IoBridge.recvfrom(IoBridge.java:556) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.net.PlainSocketImpl.read(PlainSocketImpl.java:485) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.net.PlainSocketImpl.access$000(PlainSocketImpl.java:37) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.net.PlainSocketImpl$PlainSocketInputStream.read(PlainSocketImpl.java:237) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okio.Okio$2.read(Okio.java:113) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okio.RealBufferedSource.indexOf(RealBufferedSource.java:147) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okio.RealBufferedSource.readUtf8LineStrict(RealBufferedSource.java:94) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okhttp.internal.http.HttpConnection.readResponse(HttpConnection.java:175) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okhttp.internal.http.HttpTransport.readResponseHeaders(HttpTransport.java:101) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okhttp.internal.http.HttpEngine.readResponse(HttpEngine.java:616) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.execute(HttpURLConnectionImpl.java:379) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponse(HttpURLConnectionImpl.java:323) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.android.okhttp.internal.http.HttpURLConnectionImpl.getResponseCode(HttpURLConnectionImpl.java:491) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at org.ksoap2.transport.ServiceConnectionSE.getResponseCode(ServiceConnectionSE.java:103) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:197) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:118) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at org.ksoap2.transport.HttpTransportSE.call(HttpTransportSE.java:113) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at com.sunnyinfo.myapplication.WebServiceUtils$2.run(WebServiceUtils.java:131) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:422) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.util.concurrent.FutureTask.run(FutureTask.java:237) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587) 03-14 17:51:27.073 20045-20211/com.sunnyinfo.myapplication W/System.err: at java.lang.Thread.run(Thread.java:818) ``` ```
往redis里面存数据,用了定时器,报错Connection reset by peer
``` java.net.SocketException: Connection reset by peer: socket write error; nested exception is redis.clients ``` 配置和代码如下 ![图片说明](https://img-ask.csdn.net/upload/201801/30/1517279622_295575.png) ![图片说明](https://img-ask.csdn.net/upload/201801/30/1517279738_270219.png) ![图片说明](https://img-ask.csdn.net/upload/201801/30/1517279765_347414.png) ![图片说明](https://img-ask.csdn.net/upload/201801/30/1517279866_80958.png) 开始是不会有啥问题,定时任务执行多次之后就这样,有没有办法解决,或者出现异常后马上恢复就行
javax.net.ssl.SSLException: Read error: ssl=0x56e63588: I/O error during system call, Connection reset by peer
**不止出现在Android版本低的机型上 查了好多博客 有的说是服务器的原因 但是我觉得应该还是代码原因 请大神指教** private H buildService(int time, boolean isOpenCache) { //手动创建一个OkHttpClient并设置超时时间 OkHttpClient.Builder builder = new OkHttpClient.Builder(); //日志打印 if (isDebugModel) { HttpLoggingInterceptor httpLoggingInterceptor = new HttpLoggingInterceptor(); httpLoggingInterceptor.setLevel(HttpLoggingInterceptor.Level.BODY); builder.addInterceptor(httpLoggingInterceptor); } //添加header String token =getAppToken();/*getAppToken()*/ if (!TextUtils.isEmpty(token)) { builder.addInterceptor(new Interceptor() { @Override public Response intercept(Chain chain) throws IOException { Request request = chain.request() .newBuilder() .addHeader("token", token) .build(); return chain.proceed(request); } }); } if (isOpenCache) { builder.cache(cache); builder.addInterceptor(new CacheInterceptor()); builder.addNetworkInterceptor(new CacheInterceptor()); } if (time > 0) { if (time == 6) time = 10; DEFAULT_TIMEOUT = time; } builder.connectTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS); builder.readTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS); builder.writeTimeout(DEFAULT_TIMEOUT, TimeUnit.SECONDS); builder.sslSocketFactory(createSSLSocketFactory()); builder.hostnameVerifier(new TrustAllHostnameVerifier()); OkHttpClient httpClient = builder.build(); Retrofit retrofit = new Retrofit.Builder() .client(httpClient) .addConverterFactory(GsonConverterFactory.create()) .addCallAdapterFactory(RxJavaCallAdapterFactory.create()) .baseUrl(baseUrl) .build(); return retrofit.create(hClass); } private static class TrustAllCerts implements X509TrustManager { @Override public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException { } @Override public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException { } @Override public X509Certificate[] getAcceptedIssuers() { return new X509Certificate[0]; } } private static class TrustAllHostnameVerifier implements HostnameVerifier { @Override public boolean verify(String hostname, SSLSession session) { return true; } } private static SSLSocketFactory createSSLSocketFactory() { SSLSocketFactory ssfFactory = null; try { SSLContext sc = SSLContext.getInstance("TLS"); sc.init(null, new TrustManager[] { new TrustAllCerts() }, new SecureRandom()); ssfFactory = sc.getSocketFactory(); } catch (Exception e) { } return ssfFactory; } ``` ```
postfix邮件服务器,疯狂向外发送垃圾邮件
公司postfix邮件服务器,一直存在有被别人当做肉鸡在本地向外发送垃圾邮件一直 以来没有解决,下面为配置文件 queue_directory = /var/spool/postfix command_directory = /usr/sbin daemon_directory = /usr/libexec/postfix data_directory = /var/lib/postfix mail_owner = postfix myhostname = mail.cm.com mydomain = cm.com myorigin = $mydomain inet_interfaces = all inet_protocols = ipv4 mydestination = $myhostname, localhost.$mydomain, localhost, $mydomain unknown_local_recipient_reject_code = 550 alias_maps = hash:/etc/aliases recipient_delimiter = + home_mailbox = Maildir/ mailbox_command = /usr/bin/procmail -a "$EXTENSION" DEFAULT=$HOME/Maildir/ MAILDIR=$HOME/Maildir header_checks = regexp:/etc/postfix/header_checks body_checks = regexp:/etc/postfix/body_checks smtpd_banner = $myhostname ESMTP debug_peer_level = 2 debugger_command = PATH=/bin:/usr/bin:/usr/local/bin:/usr/X11R6/bin ddd $daemon_directory/$process_name $process_id & sleep 5 sendmail_path = /usr/sbin/sendmail.postfix newaliases_path = /usr/bin/newaliases.postfix mailq_path = /usr/bin/mailq.postfix setgid_group = postdrop html_directory = no manpage_directory = /usr/share/man sample_directory = /usr/share/doc/postfix-2.6.6/samples readme_directory = /usr/share/doc/postfix-2.6.6/README_FILES message_size_limit = 1000000000 mailbox_size_limit = 2000000000 smtpd_sasl_type = dovecot smtpd_sasl_path = private/auth smtpd_sasl_auth_enable = yes smtpd_sasl_local_domain = $myhostname smtpd_recipient_restrictions = permit_mynetworks permit_auth_destination permit_sasl_authenticated check_policy_service unix:postgrey/socket reject smtpd_use_tls = yes smtpd_tls_cert_file = /etc/pki/tls/certs/server.crt smtpd_tls_key_file = /etc/pki/tls/certs/server.key smtpd_tls_session_cache_database = btree:/etc/postfix/smtpd_scache virtual_alias_maps = hash:/etc/postfix/virtual.ultra-ts.com.cn recipient_bcc_maps = hash:/etc/postfix/bcc_map smtpd_tls_security_level = may content_filter = scan:127.0.0.1:10025 smtpd_milters = inet:127.0.0.1:8891 non_smtpd_milters = $smtpd_milters milter_default_action = accept ####添加邮件队列处理时间设置 queue_run_delay = 300s maximal_queue_lifetime = 2d bounce_queue_lifetime = 2d minimal_backoff_time = 300s maximal_backoff_time = 4000s #设置队列发送限制 anvil_rate_time_unit = 120s smtpd_client_connection_rate_limit = 80 以下为攻击邮件内容 *** ENVELOPE RECORDS deferred/8/83BB3C077A *** message_size: 14844 5319 50 0 14844 message_arrival_time: Wed Feb 7 05:37:03 2018 create_time: Wed Feb 7 05:37:03 2018 named_attribute: rewrite_context=remote sender: apply@kroger.com named_attribute: log_client_name=unknown named_attribute: log_client_address=185.234.216.130 named_attribute: log_client_port=49272 named_attribute: log_message_origin=unknown[185.234.216.130] named_attribute: log_helo_name=185.234.216.130 named_attribute: log_protocol_name=ESMTP named_attribute: client_name=localhost named_attribute: reverse_client_name=localhost named_attribute: client_address=127.0.0.1 named_attribute: client_port=52020 named_attribute: helo_name=mail..com named_attribute: protocol_name=ESMTP named_attribute: client_address_type=2 named_attribute: dsn_orig_rcpt=rfc822;babygrl37907@aol.com original_recipient: babygrl37907@aol.com recipient: babygrl37907@aol.com *** MESSAGE CONTENTS deferred/8/83BB3C077A *** Received: from mail..com (localhost [127.0.0.1]) by mail..com (Postfix) with ESMTP id 83BB3C077A; Wed, 7 Feb 2018 05:37:03 +0800 (CST) Received: from 185.234.216.130 (unknown [185.234.216.130]) by mail..com (Postfix) with ESMTPA id 1884DC0778; Wed, 7 Feb 2018 05:36:52 +0800 (CST) Message-ID: <999C2A7972A6882BF7F2BB06D2327C72@185.234.216.130> Reply-To: "Kroger" <no-relpy@korger.com> From: "Kroger" <apply@kroger.com> Subject: Job Offer Date: Tue, 6 Feb 2018 13:36:51 -0800 Organization: Kroger MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0FF8_01D39F4F.8B8469E0" X-Priority: 3 X-Virus-Scanned: ClamAV using ClamSMTP 因收件人IP较多(有200多人)就不全部复制了,包括中间还有好多垃圾邮件的内容(广告) 如需进一步沟通 lmlhaozi@163.com ,谢谢指导 ,必有重谢
php网站响应日志出现大量这种,是什么意思?
[Sat Jun 02 11:16:43.175651 2018] [proxy_fcgi:error] [pid 1853] (104)Connection reset by peer: [client 117.23.61.111:35200] AH01075: Error dispatching request to : , referer:https://www.baidu.com/XXXXXXXXXXXXXXXXXXX php+apache+mysql+linux
Linux下用Samba作PDC配置方法,window能弹出登录框但是进不去
这个是报错日志 [2015/12/16 23:52:05, 1] smbd/service.c:make_connection_snum(1085) huangjiale (192.168.241.1) connect to service root initially as user root (uid=0, gid=0) (pid 5684) [2015/12/16 23:52:12, 1] smbd/service.c:close_cnum(1282) huangjiale (192.168.241.1) closed connection to service netlogon [2015/12/16 23:52:22, 1] smbd/service.c:close_cnum(1282) huangjiale (192.168.241.1) closed connection to service root [2015/12/17 00:00:04, 0] lib/util_sock.c:read_data(540) read_data: read failure for 4 bytes to client 192.168.241.1. Error = Connection reset by peer [2015/12/17 00:00:25, 0] lib/util_sock.c:read_data(540) read_data: read failure for 4 bytes to client 192.168.241.1. Error = Connection reset by peer 下面是smb.conf的配置 [global] workgroup = lduan server string = Samba Server Version %v # logs split per machine # max 50KB per log file, then rotate security = user passdb backend = tdbsam security = user domain master = yes domain logons = yes # the login script name depends on the machine name logon script = test.bat # the login script name depends on the unix user used logon path = \\%N\%U\profile logon home =\\%N\%U # disables profiles support by specifing an empty path local master = yes os level = 100 preferred master = yes wins support = yes load printers = yes cups options = raw #obtain list of printers automatically on SystemV [homes] comment = Home Directories browseable = no writable = yes [printers] comment = All Printers path = /var/spool/samba browseable = no guest ok = no writable = no printable = yes [netlogon] comment = Network Logon Service path = /home/samba/netlogon write list =root
hadoop单词统计报错Job job_1581768459583_0001 failed
3个节点hadoop01、hadoop02、hadoop03 hadoop01是主节点 hadoop01、hadoop02、hadoop03是从节点,目前集群已搭建好,jps查看三个节点运行都很正常,而且UI也能正常显示,但是使用hadoop自带的hadoop-mapreduce-examples-2.7.4.jar的wordcount进行单词统计时报错如下,请高人指点,看不懂呀: ```[root@hadoop01 mapreduce]# hadoop jar hadoop-mapreduce-examples-2.7.4.jar wordcount /wordcount/input /wordcount/output 20/02/15 20:14:25 INFO client.RMProxy: Connecting to ResourceManager at hadoop01/192.168.233.132:8032 20/02/15 20:14:27 INFO input.FileInputFormat: Total input paths to process : 1 20/02/15 20:14:27 INFO mapreduce.JobSubmitter: number of splits:1 20/02/15 20:14:28 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1581768459583_0001 20/02/15 20:14:28 INFO impl.YarnClientImpl: Submitted application application_1581768459583_0001 20/02/15 20:14:28 INFO mapreduce.Job: The url to track the job: http://hadoop01:8088/proxy/application_1581768459583_0001/ 20/02/15 20:14:28 INFO mapreduce.Job: Running job: job_1581768459583_0001 20/02/15 20:15:38 INFO mapreduce.Job: Job job_1581768459583_0001 running in uber mode : false 20/02/15 20:15:38 INFO mapreduce.Job: map 0% reduce 0% 20/02/15 20:15:38 INFO mapreduce.Job: Job job_1581768459583_0001 failed with state FAILED due to: Application application_1581768459583_0001 failed 2 times due to Error launching appattempt_1581768459583_0001_000002. Got exception: java.io.IOException: Failed on local exception: java.io.IOException: java.io.IOException: Connection reset by peer; Host Details : local host is: "hadoop01.com/79.124.78.101"; destination host is: "79.124.78.101":43276; at org.apache.hadoop.net.NetUtils.wrapException(NetUtils.java:776) at org.apache.hadoop.ipc.Client.call(Client.java:1480) at org.apache.hadoop.ipc.Client.call(Client.java:1413) at org.apache.hadoop.ipc.ProtobufRpcEngine$Invoker.invoke(ProtobufRpcEngine.java:229) at com.sun.proxy.$Proxy83.startContainers(Unknown Source) at org.apache.hadoop.yarn.api.impl.pb.client.ContainerManagementProtocolPBClientImpl.startContainers(ContainerManagementProtocolPBClientImpl.java:96) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.hadoop.io.retry.RetryInvocationHandler.invokeMethod(RetryInvocationHandler.java:191) at org.apache.hadoop.io.retry.RetryInvocationHandler.invoke(RetryInvocationHandler.java:102) at com.sun.proxy.$Proxy84.startContainers(Unknown Source) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.launch(AMLauncher.java:119) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncher.run(AMLauncher.java:250) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Caused by: java.io.IOException: java.io.IOException: Connection reset by peer at org.apache.hadoop.ipc.Client$Connection$1.run(Client.java:688) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1746) at org.apache.hadoop.ipc.Client$Connection.handleSaslConnectionFailure(Client.java:651) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:738) at org.apache.hadoop.ipc.Client$Connection.access$2900(Client.java:376) at org.apache.hadoop.ipc.Client.getConnection(Client.java:1529) at org.apache.hadoop.ipc.Client.call(Client.java:1452) ... 16 more Caused by: java.io.IOException: Connection reset by peer at sun.nio.ch.FileDispatcherImpl.read0(Native Method) at sun.nio.ch.SocketDispatcher.read(SocketDispatcher.java:39) at sun.nio.ch.IOUtil.readIntoNativeBuffer(IOUtil.java:223) at sun.nio.ch.IOUtil.read(IOUtil.java:197) at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:380) at org.apache.hadoop.net.SocketInputStream$Reader.performIO(SocketInputStream.java:57) at org.apache.hadoop.net.SocketIOWithTimeout.doIO(SocketIOWithTimeout.java:142) at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:161) at org.apache.hadoop.net.SocketInputStream.read(SocketInputStream.java:131) at java.io.FilterInputStream.read(FilterInputStream.java:133) at java.io.BufferedInputStream.fill(BufferedInputStream.java:246) at java.io.BufferedInputStream.read(BufferedInputStream.java:265) at java.io.DataInputStream.readInt(DataInputStream.java:387) at org.apache.hadoop.security.SaslRpcClient.saslConnect(SaslRpcClient.java:367) at org.apache.hadoop.ipc.Client$Connection.setupSaslConnection(Client.java:561) at org.apache.hadoop.ipc.Client$Connection.access$1900(Client.java:376) at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:730) at org.apache.hadoop.ipc.Client$Connection$2.run(Client.java:726) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:422) at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1746) at org.apache.hadoop.ipc.Client$Connection.setupIOstreams(Client.java:726) ... 19 more . Failing the application. 20/02/15 20:15:38 INFO mapreduce.Job: Counters: 0 ```
openssl:用ssl_get_peer_certification函数得到证书为空
我用阻塞模式的socket做ssl连接就能得到证书,但是用非阻塞的socket得到证书就为空。 下面是代码: void ShowCerts(SSL * ssl) //show the certification { X509 * cert; char * line; cert = SSL_get_peer_certificate(ssl); if (cert != NULL) { line = X509_NAME_oneline(X509_get_subject_name(cert), 0, 0); printf("certification: %s\n", line); free(line); line = X509_NAME_oneline(X509_get_issuer_name(cert), 0, 0); printf("publisher: %s\n", line); free(line); X509_free(cert); } else { printf("no certification!\n"); } } int main(int argc, char * *argv) { if (argc != 3) { printf("parameter error1!\n"); exit(0); } int sockfd, len; struct sockaddr_in dest; //initialize ssl SSL_CTX * ctx; SSL * ssl; SSL_library_init(); OpenSSL_add_all_algorithms(); SSL_load_error_strings(); ctx = SSL_CTX_new(SSLv23_client_method()); if (ctx == NULL) { ERR_print_errors_fp(stdout); exit(1); } //create socket if ((sockfd = socket(AF_INET, SOCK_STREAM, 0)) < 0) { perror("Socket"); exit(errno); } printf("socket created\n"); bzero( &dest, sizeof(dest)); dest.sin_family = AF_INET; dest.sin_port = htons(atoi(argv[2])); if (inet_aton(argv[1], (struct in_addr * ) &dest.sin_addr.s_addr) == 0) { perror(argv[1]); exit(errno); } printf("address created\n"); int error=-1; len = sizeof(int); struct timeval tm; fd_set set; // set non-block socket unsigned long ul = 1; ioctl(sockfd,FIONBIO,&ul); // create tcp connection bool ret =false; if (connect(sockfd, (struct sockaddr * ) &dest, sizeof(dest)) == -1) { tm.tv_sec =TIMEOUT; tm.tv_usec = 0; FD_ZERO(&set); FD_SET(sockfd,&set); if(select(sockfd+1,NULL,&set,NULL,&tm)>0) { getsockopt(sockfd,SOL_SOCKET,SO_ERROR,&error,(socklen_t *)&len); if(error==0) { ret = true; //connect successfully } else { ret = false; //connect timeout } } else { ret = false; } } else { ret = true; } if(!ret) { close(sockfd); SSL_CTX_free(ctx); printf("tcp connection timeout!\n"); exit(0); } printf("server connected\n"); ssl = SSL_new(ctx); //bind socket and ssl SSL_set_fd(ssl, sockfd); int flag; int result; int ssl_conn_ret=0; if(1!=ssl_conn_ret) { //non block ssl connection ssl_conn_ret=SSL_connect(ssl); fd_set fds; FD_ZERO(&fds); FD_SET(sockfd, &fds); int ssl_get_error_value = SSL_get_error(ssl,ssl_conn_ret); printf("ssl_get_error_value is %d\n",ssl_get_error_value); switch (ssl_get_error_value) { case SSL_ERROR_WANT_READ: result=select(sockfd + 1, &fds, NULL, NULL, &tm); if(0==result) { flag=0; } else if(-1==result) { flag=0; } else { flag=1; //connect successfully } break; case SSL_ERROR_WANT_WRITE: result=select(sockfd + 1, NULL, &fds, NULL, &tm); if(0==result) { flag=0; } else if(-1==result) { flag=0; //conncet failed } else { flag=1; } break; default: flag=0; break; } } if(0==flag) { printf("connection error!\n"); } if(1==ssl_conn_ret||1==flag) { ShowCerts(ssl); } ul = 0; ioctl(sockfd, FIONBIO, &ul); SSL_shutdown(ssl); SSL_free(ssl); close(sockfd); SSL_CTX_free(ctx); return 0; }
终于明白阿里百度这样的大公司,为什么面试经常拿ThreadLocal考验求职者了
点击上面↑「爱开发」关注我们每晚10点,捕获技术思考和创业资源洞察什么是ThreadLocalThreadLocal是一个本地线程副本变量工具类,各个线程都拥有一份线程私有的数
程序员必须掌握的核心算法有哪些?
由于我之前一直强调数据结构以及算法学习的重要性,所以就有一些读者经常问我,数据结构与算法应该要学习到哪个程度呢?,说实话,这个问题我不知道要怎么回答你,主要取决于你想学习到哪些程度,不过针对这个问题,我稍微总结一下我学过的算法知识点,以及我觉得值得学习的算法。这些算法与数据结构的学习大多数是零散的,并没有一本把他们全部覆盖的书籍。下面是我觉得值得学习的一些算法以及数据结构,当然,我也会整理一些看过...
《奇巧淫技》系列-python!!每天早上八点自动发送天气预报邮件到QQ邮箱
此博客仅为我业余记录文章所用,发布到此,仅供网友阅读参考,如有侵权,请通知我,我会删掉。 补充 有不少读者留言说本文章没有用,因为天气预报直接打开手机就可以收到了,为何要多此一举发送到邮箱呢!!!那我在这里只能说:因为你没用,所以你没用!!! 这里主要介绍的是思路,不是天气预报!不是天气预报!!不是天气预报!!!天气预报只是用于举例。请各位不要再刚了!!! 下面是我会用到的两个场景: 每日下
面试官问我:什么是消息队列?什么场景需要他?用了会出现什么问题?
你知道的越多,你不知道的越多 点赞再看,养成习惯 GitHub上已经开源 https://github.com/JavaFamily 有一线大厂面试点脑图、个人联系方式,欢迎Star和完善 前言 消息队列在互联网技术存储方面使用如此广泛,几乎所有的后端技术面试官都要在消息队列的使用和原理方面对小伙伴们进行360°的刁难。 作为一个在互联网公司面一次拿一次Offer的面霸,打败了无数
8年经验面试官详解 Java 面试秘诀
    作者 | 胡书敏 责编 | 刘静 出品 | CSDN(ID:CSDNnews) 本人目前在一家知名外企担任架构师,而且最近八年来,在多家外企和互联网公司担任Java技术面试官,前后累计面试了有两三百位候选人。在本文里,就将结合本人的面试经验,针对Java初学者、Java初级开发和Java开发,给出若干准备简历和准备面试的建议。   Java程序员准备和投递简历的实
究竟你适不适合买Mac?
我清晰的记得,刚买的macbook pro回到家,开机后第一件事情,就是上了淘宝网,花了500元钱,找了一个上门维修电脑的师傅,上门给我装了一个windows系统。。。。。。 表砍我。。。 当时买mac的初衷,只是想要个固态硬盘的笔记本,用来运行一些复杂的扑克软件。而看了当时所有的SSD笔记本后,最终决定,还是买个好(xiong)看(da)的。 已经有好几个朋友问我mba怎么样了,所以今天尽量客观
程序员一般通过什么途径接私活?
二哥,你好,我想知道一般程序猿都如何接私活,我也想接,能告诉我一些方法吗? 上面是一个读者“烦不烦”问我的一个问题。其实不止是“烦不烦”,还有很多读者问过我类似这样的问题。 我接的私活不算多,挣到的钱也没有多少,加起来不到 20W。说实话,这个数目说出来我是有点心虚的,毕竟太少了,大家轻喷。但我想,恰好配得上“一般程序员”这个称号啊。毕竟苍蝇再小也是肉,我也算是有经验的人了。 唾弃接私活、做外
大学四年自学走来,这些珍藏的「实用工具/学习网站」我全贡献出来了
知乎高赞:文中列举了互联网一线大厂程序员都在用的工具集合,涉及面非常广,小白和老手都可以进来看看,或许有新收获。
《阿里巴巴开发手册》读书笔记-编程规约
Java编程规约命名风格 命名风格 类名使用UpperCamelCase风格 方法名,参数名,成员变量,局部变量都统一使用lowerCamelcase风格 常量命名全部大写,单词间用下划线隔开, 力求语义表达完整清楚,不要嫌名字长 ...
Python爬虫爬取淘宝,京东商品信息
小编是一个理科生,不善长说一些废话。简单介绍下原理然后直接上代码。 使用的工具(Python+pycharm2019.3+selenium+xpath+chromedriver)其中要使用pycharm也可以私聊我selenium是一个框架可以通过pip下载 pip install selenium -i https://pypi.tuna.tsinghua.edu.cn/simple/ 
阿里程序员写了一个新手都写不出的低级bug,被骂惨了。
你知道的越多,你不知道的越多 点赞再看,养成习惯 本文 GitHub https://github.com/JavaFamily 已收录,有一线大厂面试点思维导图,也整理了很多我的文档,欢迎Star和完善,大家面试可以参照考点复习,希望我们一起有点东西。 前前言 为啥今天有个前前言呢? 因为你们的丙丙啊,昨天有牌面了哟,直接被微信官方推荐,知乎推荐,也就仅仅是还行吧(心里乐开花)
Java工作4年来应聘要16K最后没要,细节如下。。。
前奏: 今天2B哥和大家分享一位前几天面试的一位应聘者,工作4年26岁,统招本科。 以下就是他的简历和面试情况。 基本情况: 专业技能: 1、&nbsp;熟悉Sping了解SpringMVC、SpringBoot、Mybatis等框架、了解SpringCloud微服务 2、&nbsp;熟悉常用项目管理工具:SVN、GIT、MAVEN、Jenkins 3、&nbsp;熟悉Nginx、tomca
Python爬虫精简步骤1 获取数据
爬虫的工作分为四步: 1.获取数据。爬虫程序会根据我们提供的网址,向服务器发起请求,然后返回数据。 2.解析数据。爬虫程序会把服务器返回的数据解析成我们能读懂的格式。 3.提取数据。爬虫程序再从中提取出我们需要的数据。 4.储存数据。爬虫程序把这些有用的数据保存起来,便于你日后的使用和分析。 这一篇的内容就是:获取数据。 首先,我们将会利用一个强大的库——requests来获取数据。 在电脑上安装
Python绘图,圣诞树,花,爱心 | Turtle篇
1.画圣诞树 import turtle screen = turtle.Screen() screen.setup(800,600) circle = turtle.Turtle() circle.shape('circle') circle.color('red') circle.speed('fastest') circle.up() square = turtle.Turtle()
作为一个程序员,CPU的这些硬核知识你必须会!
CPU对每个程序员来说,是个既熟悉又陌生的东西? 如果你只知道CPU是中央处理器的话,那可能对你并没有什么用,那么作为程序员的我们,必须要搞懂的就是CPU这家伙是如何运行的,尤其要搞懂它里面的寄存器是怎么一回事,因为这将让你从底层明白程序的运行机制。 随我一起,来好好认识下CPU这货吧 把CPU掰开来看 对于CPU来说,我们首先就要搞明白它是怎么回事,也就是它的内部构造,当然,CPU那么牛的一个东
破14亿,Python分析我国存在哪些人口危机!
2020年1月17日,国家统计局发布了2019年国民经济报告,报告中指出我国人口突破14亿。 猪哥的朋友圈被14亿人口刷屏,但是很多人并没有看到我国复杂的人口问题:老龄化、男女比例失衡、生育率下降、人口红利下降等。 今天我们就来分析一下我们国家的人口数据吧! 更多有趣分析教程,扫描下方二维码关注vx公号「裸睡的猪」 即可查看! 一、背景 1.人口突破14亿 2020年1月17日,国家统计局发布
听说想当黑客的都玩过这个Monyer游戏(1~14攻略)
第零关 进入传送门开始第0关(游戏链接) 请点击链接进入第1关: 连接在左边→ ←连接在右边 看不到啊。。。。(只能看到一堆大佬做完的留名,也能看到菜鸡的我,在后面~~) 直接fn+f12吧 &lt;span&gt;连接在左边→&lt;/span&gt; &lt;a href="first.php"&gt;&lt;/a&gt; &lt;span&gt;←连接在右边&lt;/span&gt; o
在家远程办公效率低?那你一定要收好这个「在家办公」神器!
相信大家都已经收到国务院延长春节假期的消息,接下来,在家远程办公可能将会持续一段时间。 但是问题来了。远程办公不是人在电脑前就当坐班了,相反,对于沟通效率,文件协作,以及信息安全都有着极高的要求。有着非常多的挑战,比如: 1在异地互相不见面的会议上,如何提高沟通效率? 2文件之间的来往反馈如何做到及时性?如何保证信息安全? 3如何规划安排每天工作,以及如何进行成果验收? ......
作为一个程序员,内存和磁盘的这些事情,你不得不知道啊!!!
截止目前,我已经分享了如下几篇文章: 一个程序在计算机中是如何运行的?超级干货!!! 作为一个程序员,CPU的这些硬核知识你必须会! 作为一个程序员,内存的这些硬核知识你必须懂! 这些知识可以说是我们之前都不太重视的基础知识,可能大家在上大学的时候都学习过了,但是嘞,当时由于老师讲解的没那么有趣,又加上这些知识本身就比较枯燥,所以嘞,大家当初几乎等于没学。 再说啦,学习这些,也看不出来有什么用啊!
别低估自己的直觉,也别高估自己的智商
所有群全部吵翻天,朋友圈全部沦陷,公众号疯狂转发。这两周没怎么发原创,只发新闻,可能有人注意到了。我不是懒,是文章写了却没发,因为大家的关注力始终在这次的疫情上面,发了也没人看。当然,我...
这个世界上人真的分三六九等,你信吗?
偶然间,在知乎上看到一个问题 一时间,勾起了我深深的回忆。 以前在厂里打过两次工,做过家教,干过辅导班,做过中介。零下几度的晚上,贴过广告,满脸、满手地长冻疮。   再回首那段岁月,虽然苦,但让我学会了坚持和忍耐。让我明白了,在这个世界上,无论环境多么的恶劣,只要心存希望,星星之火,亦可燎原。   下文是原回答,希望能对你能有所启发。   如果我说,这个世界上人真的分三六九等,
为什么听过很多道理,依然过不好这一生?
记录学习笔记是一个重要的习惯,不希望学习过的东西成为过眼云烟。做总结的同时也是一次复盘思考的过程。 本文是根据阅读得到 App上《万维钢·精英日课》部分文章后所做的一点笔记和思考。学习是一个系统的过程,思维模型的建立需要相对完整的学习和思考过程。以下观点是在碎片化阅读后总结的一点心得总结。
B 站上有哪些很好的学习资源?
哇说起B站,在小九眼里就是宝藏般的存在,放年假宅在家时一天刷6、7个小时不在话下,更别提今年的跨年晚会,我简直是跪着看完的!! 最早大家聚在在B站是为了追番,再后来我在上面刷欧美新歌和漂亮小姐姐的舞蹈视频,最近两年我和周围的朋友们已经把B站当作学习教室了,而且学习成本还免费,真是个励志的好平台ヽ(.◕ฺˇд ˇ◕ฺ;)ノ 下面我们就来盘点一下B站上优质的学习资源: 综合类 Oeasy: 综合
如何优雅地打印一个Java对象?
你好呀,我是沉默王二,一个和黄家驹一样身高,和刘德华一样颜值的程序员。虽然已经写了十多年的 Java 代码,但仍然觉得自己是个菜鸟(请允许我惭愧一下)。 在一个月黑风高的夜晚,我思前想后,觉得再也不能这么蹉跎下去了。于是痛下决心,准备通过输出的方式倒逼输入,以此来修炼自己的内功,从而进阶成为一名真正意义上的大神。与此同时,希望这些文章能够帮助到更多的读者,让大家在学习的路上不再寂寞、空虚和冷。 ...
雷火神山直播超两亿,Web播放器事件监听是怎么实现的?
Web播放器解决了在手机浏览器和PC浏览器上播放音视频数据的问题,让视音频内容可以不依赖用户安装App,就能进行播放以及在社交平台进行传播。在视频业务大数据平台中,播放数据的统计分析非常重要,所以Web播放器在使用过程中,需要对其内部的数据进行收集并上报至服务端,此时,就需要对发生在其内部的一些播放行为进行事件监听。 那么Web播放器事件监听是怎么实现的呢? 01 监听事件明细表 名
3万字总结,Mysql优化之精髓
本文知识点较多,篇幅较长,请耐心学习 MySQL已经成为时下关系型数据库产品的中坚力量,备受互联网大厂的青睐,出门面试想进BAT,想拿高工资,不会点MySQL优化知识,拿offer的成功率会大大下降。 为什么要优化 系统的吞吐量瓶颈往往出现在数据库的访问速度上 随着应用程序的运行,数据库的中的数据会越来越多,处理时间会相应变慢 数据是存放在磁盘上的,读写速度无法和内存相比 如何优化 设计
Linux 命令(122)—— watch 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] watch(1) manual
Linux 命令(121)—— cal 命令
1.命令简介 2.命令格式 3.选项说明 4.常用示例 参考文献 [1] cal(1) manual
记jsp+servlet+jdbc实现的新闻管理系统
1.工具:eclipse+SQLyog 2.介绍:实现的内容就是显示新闻的基本信息,然后一个增删改查的操作。 3.数据库表设计 列名 中文名称 数据类型 长度 非空 newsId 文章ID int 11 √ newsTitle 文章标题 varchar 20 √ newsContent 文章内容 text newsStatus 是否审核 varchar 10 news...
Python新型冠状病毒疫情数据自动爬取+统计+发送报告+数据屏幕(三)发送篇
今天介绍的项目是使用 Itchat 发送统计报告 项目功能设计: 定时爬取疫情数据存入Mysql 进行数据分析制作疫情报告 使用itchat给亲人朋友发送分析报告(本文) 基于Django做数据屏幕 使用Tableau做数据分析 来看看最终效果 目前已经完成,预计2月12日前更新 使用 itchat 发送数据统计报告 itchat 是一个基于 web微信的一个框架,但微信官方并不允
作为程序员的我,大学四年一直自学,全靠这些实用工具和学习网站!
我本人因为高中沉迷于爱情,导致学业荒废,后来高考,毫无疑问进入了一所普普通通的大学,实在惭愧...... 我又是那么好强,现在学历不行,没办法改变的事情了,所以,进入大学开始,我就下定决心,一定要让自己掌握更多的技能,尤其选择了计算机这个行业,一定要多学习技术。 在进入大学学习不久后,我就认清了一个现实:我这个大学的整体教学质量和学习风气,真的一言难尽,懂的人自然知道怎么回事? 怎么办?我该如何更好的提升
新来个技术总监,禁止我们使用Lombok!
我有个学弟,在一家小型互联网公司做Java后端开发,最近他们公司新来了一个技术总监,这位技术总监对技术细节很看重,一来公司之后就推出了很多"政策",比如定义了很多开发规范、日志规范、甚至是要求大家统一使用某一款IDE。 但是这些都不是我这个学弟和我吐槽的点,他真正和我吐槽的是,他很不能理解,这位新来的技术总监竟然禁止公司内部所有开发使用Lombok。但是又没给出十分明确的,可以让人信服的理由。 于...
相关热词 c# id读写器 c#俄罗斯方块源码 c# linq原理 c# 装箱有什么用 c#集合 复制 c# 一个字符串分组 c++和c#哪个就业率高 c# 批量动态创建控件 c# 模块和程序集的区别 c# gmap 截图
立即提问