yzy-1

Results 7 issues of yzy-1

如题。连接 `ws://localhost:5050/ws` 并发送一条执行请求,可以正常收到结果。但是当请求结束,客户端退出时,无论是显式调用 `connection.close()` 关闭连接还是直接 `exit` 退出程序,均会在服务端(executorserver)产生格式如同下面的 warning: ```javascript // 直接退出 {"level":"warn","ts":1663066810.5931816,"caller":"ws_executor/websocket.go:146","msg":"ws read error:websocket: close 1006 (abnormal closure): unexpected EOF"} // 显式调用 close {"level":"warn","ts":1663066699.9190106,"caller":"ws_executor/websocket.go:146","msg":"ws read error:websocket: close 1000 (normal): Normal...

`encoding=windows-1251` tells the XML parser to parse the entire XML as windows-1251 encoding. Since this encoding is ASCII compatible, this works fine in most cases. However, some "smart" parsers will...

在使用除 gRPC 外其他传输层时(HTTP / WebSocket / FFI 等)时,数据都是以 JSON 方式传递的,然而 struct CmdFile 里的 Content 被声明称了 `*string` 类型: https://github.com/criyle/go-judge/blob/e5c7b811e5c72f5e7fb494c8e4914a5b0729ed6c/cmd/executorserver/model/model.go#L14-L22 也就是说,似乎是没办法把一个二进制文件作为调用 `/run` 时的 copyIn 直接扔到沙盒里去.我尝试了下面几种方法: - 使用 README 中的方式,传一个 Buffer 进去,但是直接返回 `json:...

在没有开源许可证的情况下,我不清楚自己的项目能否采用该项目中的代码.所以有必要给本项目添加一个开源许可证. 如果没有特别需求,我个人认为 [Apache 许可证 2.0](https://zh.wikipedia.org/wiki/Apache%E8%AE%B8%E5%8F%AF%E8%AF%81) 可能是一个比较好的选择.

I do not want to use g c to comment, so I added an option to disable the default keymaps

In the current code, the program run time limit for `test` command of "default mode" is fixed (2 seconds). It should be loaded from `meta.yaml` of the problem, in the...

enhancement

[Niri's recent commit](https://github.com/YaLTeR/niri/commit/03c603918d817762ee95d21ea15a854adf47886e) added two configuration options. I hope that this project can keep up with it.