上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 78 下一页

comcat白名单(三)http是否有Connect tunnel

摘要: mac curl http://localhost:9999/hhh --proxy "localhost:1999" localhost:9999不需要存在 结论: 1 localhost:9999存在于Host头 2 这个请求为Get,不是Connect 3 远端connect失败,close 阅读全文
posted @ 2023-10-17 23:22 silyvin 阅读(39) 评论(0) 推荐(0)

tomcat ip白名单(二)openshift无法同时支持http和https tunnel(http+tcp),方案一流产

摘要: 1 openshift 背景,为什么项目二(http springboot用https域名访问)与项目一(双向ssl透传)可以共存 * edge - TLS termination is done by the router and http is used to communicate with 阅读全文
posted @ 2023-10-17 00:08 silyvin 阅读(103) 评论(0) 推荐(0)

bq事故

摘要: 生产者消费者应当使用2吧锁 阅读全文
posted @ 2023-10-13 11:08 silyvin 阅读(18) 评论(0) 推荐(0)

带宽

摘要: 假设qps为500 request 平均长度1K,response平均长度200K 则每秒流量为入站1K*500=500KB/s=4Mbit/s 出站200K*500=10MB/s=80Mbit/s 阅读全文
posted @ 2023-10-13 00:20 silyvin 阅读(77) 评论(0) 推荐(0)

tomcat ip白名单

摘要: 1 如果加在四层,则拿到的是f5的ip 如果加在七层,报文可以伪造 2 https://www.jianshu.com/p/d67dbd236748?utm_campaign=hugo&utm_content=note&utm_medium=seo_notes&utm_source=recommen 阅读全文
posted @ 2023-10-08 00:36 silyvin 阅读(106) 评论(0) 推荐(0)

javassist改类

摘要: package agent; import javassist.CannotCompileException; import javassist.ClassPool; import javassist.CtBehavior; import javassist.CtClass; import java 阅读全文
posted @ 2023-09-20 17:06 silyvin 阅读(238) 评论(0) 推荐(0)

main 与 test 资源文件冲突

摘要: 一个文件同时存在于xxx-war下, main的在classes下 test的在classess-test下 1)打包时不包括test目录下 https://zhuanlan.zhihu.com/p/630642784 2)打包时忽略test的编译 -DskipTests与-Dmaven.test. 阅读全文
posted @ 2023-09-20 17:04 silyvin 阅读(25) 评论(0) 推荐(0)

future task cancel

摘要: 1 FutureTask.cancel 干了啥 //有一个入参,需要说明task是否是可中断的 public boolean cancel(boolean mayInterruptIfRunning) { if (state != NEW) return false; if (mayInterrup 阅读全文
posted @ 2023-09-04 20:33 silyvin 阅读(45) 评论(0) 推荐(0)

cglib获取原始类

摘要: import java.lang.reflect.Proxy; public class ProxyUtils { public static final String GUICE_PROXY_FLAG = "$EnhancerByGuice$"; public static final Strin 阅读全文
posted @ 2023-08-17 13:35 silyvin 阅读(180) 评论(0) 推荐(0)

getMethods与public override方法

摘要: public class TT { public static void main(String[] args) { System.out.println(B.class.getMethods().length); System.out.println(C.class.getMethods().le 阅读全文
posted @ 2023-07-31 17:40 silyvin 阅读(44) 评论(0) 推荐(0)
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 78 下一页