p2p2 0.21.0 → 0.22.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/p2p2/p1_worker.rb +12 -0
- data/lib/p2p2/p2_worker.rb +12 -0
- data/lib/p2p2/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ed5928f54a6129f64cc843748d5f337d9f5fdccfed90239b9a594bf6ecd577bc
|
4
|
+
data.tar.gz: 1ec20b3e82bf69b5e371ceb89dcc666b97f0a2407072647271e481c7a3166e4e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b35b3bc6a54ceb236aee2f9258580c381397619dcdfbe4dfd3ea61c8c6deeda1e6e188a64b6921794d801fd2838f5db3c7e00462be3cebfe5158e589356a8ff
|
7
|
+
data.tar.gz: 9bd26990e4e3aff5285a10b011c322251ba3c64f5379e02172d70f16d9624355c8a9ec3f194b108c3681b966b38749d4bded464a9c9588bf3aca4e7645026e3f
|
data/lib/p2p2/p1_worker.rb
CHANGED
@@ -539,6 +539,10 @@ module P2p2
|
|
539
539
|
tund.sendmsg( data, 0, to_addr )
|
540
540
|
rescue IO::WaitWritable, Errno::EINTR
|
541
541
|
return
|
542
|
+
rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH => e
|
543
|
+
puts "#{ Time.new } #{ e.class }, close tund"
|
544
|
+
close_tund( tund )
|
545
|
+
return
|
542
546
|
end
|
543
547
|
|
544
548
|
@tund_info[ :ctlmsgs ].shift
|
@@ -557,6 +561,10 @@ module P2p2
|
|
557
561
|
tund.sendmsg( data, 0, @tund_info[ :tun_addr ] )
|
558
562
|
rescue IO::WaitWritable, Errno::EINTR
|
559
563
|
return
|
564
|
+
rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH => e
|
565
|
+
puts "#{ Time.new } #{ e.class }, close tund"
|
566
|
+
close_tund( tund )
|
567
|
+
return
|
560
568
|
end
|
561
569
|
end
|
562
570
|
end
|
@@ -625,6 +633,10 @@ module P2p2
|
|
625
633
|
tund.sendmsg( data, 0, @tund_info[ :tun_addr ] )
|
626
634
|
rescue IO::WaitWritable, Errno::EINTR
|
627
635
|
return
|
636
|
+
rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH => e
|
637
|
+
puts "#{ Time.new } #{ e.class }, close tund"
|
638
|
+
close_tund( tund )
|
639
|
+
return
|
628
640
|
end
|
629
641
|
|
630
642
|
# puts "debug2 written pack #{ pack_id }"
|
data/lib/p2p2/p2_worker.rb
CHANGED
@@ -565,6 +565,10 @@ module P2p2
|
|
565
565
|
tun.sendmsg( data, 0, to_addr )
|
566
566
|
rescue IO::WaitWritable, Errno::EINTR
|
567
567
|
return
|
568
|
+
rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH => e
|
569
|
+
puts "#{ Time.new } #{ e.class }, close tun"
|
570
|
+
close_tun( tun )
|
571
|
+
return
|
568
572
|
end
|
569
573
|
|
570
574
|
@tun_info[ :ctlmsgs ].shift
|
@@ -583,6 +587,10 @@ module P2p2
|
|
583
587
|
tun.sendmsg( data, 0, @tun_info[ :tund_addr ] )
|
584
588
|
rescue IO::WaitWritable, Errno::EINTR
|
585
589
|
return
|
590
|
+
rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH => e
|
591
|
+
puts "#{ Time.new } #{ e.class }, close tun"
|
592
|
+
close_tun( tun )
|
593
|
+
return
|
586
594
|
end
|
587
595
|
end
|
588
596
|
end
|
@@ -651,6 +659,10 @@ module P2p2
|
|
651
659
|
tun.sendmsg( data, 0, @tun_info[ :tund_addr ] )
|
652
660
|
rescue IO::WaitWritable, Errno::EINTR
|
653
661
|
return
|
662
|
+
rescue Errno::EHOSTUNREACH, Errno::ENETUNREACH => e
|
663
|
+
puts "#{ Time.new } #{ e.class }, close tun"
|
664
|
+
close_tun( tun )
|
665
|
+
return
|
654
666
|
end
|
655
667
|
|
656
668
|
# puts "debug2 written pack #{ pack_id }"
|
data/lib/p2p2/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: p2p2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.22.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- takafan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: 内网里的任意应用,访问另一个内网里的应用服务端。
|
14
14
|
email:
|