|
18 | 18 | import java.security.NoSuchProviderException;
|
19 | 19 | import java.security.PrivateKey;
|
20 | 20 | import java.security.PublicKey;
|
| 21 | +import java.security.Security; |
21 | 22 | import java.security.cert.CertificateException;
|
22 | 23 | import java.security.spec.InvalidKeySpecException;
|
23 | 24 | import java.util.ArrayList;
|
@@ -292,7 +293,11 @@ private void parseFromTopic2KeyInfo()
|
292 | 293 | }
|
293 | 294 |
|
294 | 295 | public void initJavaOpt() {
|
295 |
| - logger.trace(" initJavaOpt empty func ."); |
| 296 | + |
| 297 | + logger.info(" #jdk.disabled.namedCurves. "); |
| 298 | + |
| 299 | + Security.setProperty("jdk.disabled.namedCurves", ""); |
| 300 | + |
296 | 301 | /*
|
297 | 302 | System.setProperty("jdk.tls.namedGroups", "secp256k1");
|
298 | 303 | logger.info(
|
@@ -485,9 +490,12 @@ public void asyncSendEthereumMessage(
|
485 | 490 | new TimerTask() {
|
486 | 491 | @Override
|
487 | 492 | public void run(Timeout timeout) throws Exception {
|
488 |
| - // 处理超时逻辑 |
| 493 | + logger.error( |
| 494 | + "transaction callback timeout, seq: {}, timeout: {}", |
| 495 | + request.getMessageID(), |
| 496 | + request.getTimeout()); |
| 497 | + |
489 | 498 | callbackInner.onTimeout();
|
490 |
| - // timeout时清除map的数据,所以尽管后面有回包数据,也会找不到seq->callback的关系 |
491 | 499 | seq2TransactionCallback.remove(request.getMessageID());
|
492 | 500 | }
|
493 | 501 | },
|
@@ -588,6 +596,10 @@ public void asyncSendEthereumMessage(BcosRequest request, BcosResponseCallback c
|
588 | 596 |
|
589 | 597 | @Override
|
590 | 598 | public void run(Timeout timeout) throws Exception {
|
| 599 | + logger.error( |
| 600 | + "process bcos message timeout, seq: {}, timeout: {}", |
| 601 | + bcosMessage.getSeq(), |
| 602 | + request.getTimeout()); |
591 | 603 | // handle timer
|
592 | 604 | _callback.onTimeout();
|
593 | 605 | }
|
@@ -702,6 +714,10 @@ public void asyncSendChannelMessage2(
|
702 | 714 | public void run(Timeout timeout) throws Exception {
|
703 | 715 | // process timeout logic
|
704 | 716 | _callback.onTimeout();
|
| 717 | + logger.error( |
| 718 | + "process channel message timeout, seq: {}, timeout: {}", |
| 719 | + channelMessage.getSeq(), |
| 720 | + request.getTimeout()); |
705 | 721 | }
|
706 | 722 | },
|
707 | 723 | request.getTimeout(),
|
|
0 commit comments