Skip to content
#

gfw

Here are 192 public repositories matching this topic...

alexbbbb
alexbbbb commented Feb 16, 2019
  • 是否试过最新的版本 (https://github.com/XX-net/XX-Net/releases )?

  • 是否查看过 Wiki (https://github.com/XX-net/XX-Net/wiki )?

  • 是否以相关关键词搜索过类似 issues?

  • 描述遇到的问题,贴出所有能帮助分析问题的状态页和日志,如包含大量文本时,请上传为 txt 文件:

  • 如果问题得到解决,请务必回复相关情况,谢谢。

XX-Net Status:

sys-platform: x86_64, Darwin-18.2.0-x86_64-i386-64bit
os-system: Darwin
os-version: Darwin Kernel Version 18.2.0: Thu Dec 20 20:46:53 PST 2018;

ssrlive
ssrlive commented Aug 27, 2019

也算一个总结, 提醒后来人少走弯路.

  • 写入 socket 时的内存管理
    uv_write 函数写网口时, 写入数据的内存必须由你管理, 在 回调函数 uv_write_cb 内部释放. 如果你不信邪, 在 uv_write 执行完以后马上释放, 恭喜你掉坑里了. 我就在这坑里呆了一星期. 因为这么干的结果是, 在 Windows 下一切正常, 在 Linux 下会随机写失败. 估计 Windows 对这块写内存复制了一份以增加安全性, 类 unix 平台就不管你死活了. 这点差异性就足以逼你发疯痛不欲生了.

  • 接收数

Improve this page

Add a description, image, and links to the gfw topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the gfw topic, visit your repo's landing page and select "manage topics."

Learn more

You can’t perform that action at this time.