上一页 1 2 3 4 5 6 7 8 9 10 ··· 69 下一页

cookie中的SameSite属性

摘要: 0 我们的网页为什么能被iframe嵌入: 1) 把网关加入应用程序的白名单,Content-Security-Policy是所谓的白名单在http协议上的体现 index A.xxx.net 网关 B.xxx.net 反向代理到C(域名不关心);A iframe B 证明,用fiddler修改这个 阅读全文
posted @ 2022-12-14 16:53 silyvin 阅读(1572) 评论(0) 推荐(0) 编辑

https代理服务器(二)浏览器如何验证证书

摘要: https://www.cnblogs.com/iiiiher/p/8085698.html 证书生成工具 1,openssl 2,jdk自带的keystone 3,cfssl 证书中各个字段的含义 - 查看证书的内容 openssl x509 -in /etc/pki/CA/cacert.pem 阅读全文
posted @ 2022-12-13 15:33 silyvin 阅读(645) 评论(0) 推荐(0) 编辑

https代理服务器(一)问题引出

摘要: 0 在 netty(二十五)http代理服务器(四)困难 中,始终困惑于chrome(mac)不信任我们的自签名证书 然而charles是做到了,我们从头来过,先不搞代理服务器的,先搞个简单服务器,排除是否是mac chrome就是无法信任自签名证书的谣言 1 https://www.jianshu 阅读全文
posted @ 2022-12-13 13:45 silyvin 阅读(129) 评论(0) 推荐(0) 编辑

代理服务器httpclient未设置超时

摘要: 0 背景: netty(二十四)http代理服务器(三)fiddler【重点】之后,在换了台电脑了,发现还是会访问10几个网页后出页面速度变慢,最终卡死 发现有16个连接的差 这里已经猜猜有对外请求阻塞了,而消息队列的并发数为10 jstack后果然发现10个线程卡在对外请求中,即是对谷歌服务器的请 阅读全文
posted @ 2022-12-11 22:36 silyvin 阅读(68) 评论(0) 推荐(0) 编辑

hashset事故

摘要: 尽管MyCookie改写了hashCode和euals,但并没有如预期把里面的相同对象替换掉,导致失败 set cookie set.add set cookie set.add失效 该session过期 hashCode和euals是替代value object的依据 不是替代key object 阅读全文
posted @ 2022-12-09 11:28 silyvin 阅读(17) 评论(0) 推荐(0) 编辑

file 没有close

摘要: file open write 10000 close or flush,东西还在内存里就去zip了 zip 发现少了3行 阅读全文
posted @ 2022-11-22 15:20 silyvin 阅读(14) 评论(0) 推荐(0) 编辑

git rebase

摘要: 1 在上面的过程中,更新代码我使用的是 git pull origin B1 --rebase 而不是 git pull origin B1 这也是平时使用 rebase 注意的一点,git pull 这条命令默认使用了 --merge 的方式更新代码,如果你不指定用 --rebase,有的时候就会 阅读全文
posted @ 2022-11-15 16:05 silyvin 阅读(97) 评论(0) 推荐(0) 编辑

java代理服务器的方式(转)

摘要: https://www.cnblogs.com/langtianya/p/4026102.html 使用Java的HttpURLConnection类可以实现HttpClient的功能,而不需要依赖任何其他类库。所有有时候大家就直接使用它来完成一些简单(或复杂)的功能。但是你活在伟大的{print 阅读全文
posted @ 2022-10-02 22:50 silyvin 阅读(963) 评论(0) 推荐(0) 编辑

maven密码加密

摘要: https://blog.csdn.net/weixin_44953227/article/details/125541955 mvn --encrypt-master-password 当前登录用户名\.m2\settings-security.xml <settingsSecurity> <ma 阅读全文
posted @ 2022-08-17 14:43 silyvin 阅读(122) 评论(0) 推荐(0) 编辑

双检锁的另一种形式

摘要: 背景:sonar对volatile和synchronized不友好,项目背景:mybatis guice 事务代理切面 private ThreadLocal<Integer> getTrasactionStatus(project_DB_TRANSACTIONAL projectDbTransac 阅读全文
posted @ 2022-07-25 21:31 silyvin 阅读(17) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 69 下一页