我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

使用golang模拟TCP半开

I'm writing a golang app test-proxy that works as an http proxy to simulate various network conditions so I can test the error handling paths in my other http applications. Currently I'm simulating a request where partial data is returned, but I'm wanting to figure out how to add support for forcing a tcp half open condition. What would be the best way to simulate this using golang?

近期文章

  • 转到模板:在模板中的$ variable上调用方法
  • 如何在Go中的Blackfriday中插入/提取前件?
  • 具有处理程序功能时如何嵌入类型?
  • 在完成写入wfile输出流之前,Python BaseHTTPServer调用Finish()
  • Go and Bazel:使用外部Git存储库
  • 如何在Golang SSH客户端中删除颜色代码
  • 如何在golang中将xml文件转换为map [string] interface {}? [重复]
  • android应用程序又启动了怎么处理
  • 使用PostgreSQL:如何从db.Query获取行数?
  • 如何在没有每次授权的情况下将视频上传到youtube?
  • 如何在Golang中通过开放的TCP连接执行命令
  • 从golang内部调用gpg会改变其行为
  • 如何在delve中删除断点
  • Golang:gocraft / health package 100%CPU
  • 在Golang中将多个JSON字段解码为一个
  • 许多goroutines的内存消耗
  • 将reflect.value转换为reflect.method
  • 使用App Engine VM时始终获得“ 502错误的网关”
  • Golang和python节俭的交流
  • Go模板-从对象库/数据库加载

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华