-
Hi Brett!
I hope all is good! I am trying to install Slogger on a Mojave system, but it fails with "Could not find gem 'digest' in any of the gem sources listed in your Gemfile."
excluding "dige…
-
-
I'm trying to work with an API on an internal server, and hyper keeps blowing away the connection due to "invalid HTTP header parsed". There doesn't appear to be a specific error provided, however, wh…
-
**Jetty version(s)**
12.0.6
**Jetty Environment**
ee8
**Java version/vendor**
openjdk version "17.0.8.1" 2023-08-24 LTS
OpenJDK Runtime Environment (build 17.0.8.1+1-LTS)
OpenJDK 64-Bit Ser…
-
My application downloads streams from ytdl-core one after another. Everything is good at first, but after 10h this error pops up, every time the app tries to stream something new:
```
AudioPla…
-
项目的代码写的很好,但是感觉注释和解析的文档较少,希望作者能增加一些文档~
-
试试一个字节一个字节、完整请求的数据随机拆分成不同长度的很多段丢给parser处理:
```golang
package test
import (
"fmt"
"math/rand"
"testing"
"time"
"github.com/antlabs/httparser"
)
func TestServerParserContentLength…
-
如果只是为了轻便的网络层,libev的API形式没什么必要,或者如果你喜欢,可以简单在nbio基础上 wrap 一层
我写了个简单的 nbio + httpparser 的例子,httpparser 的 bug 我先忽略了,默认 httpparser.Execute 每次能解析成功一个请求,详见注释:
server.go
```golang
package main
import…
-
目前设计,如下。主要考虑到闭包可以方便捕获变量。
```go
type Setting struct {
// 解析开始
MessageBegin func()
// url 回调函数, 只有在request包才会回调
URL func([]byte)
// 状态短语
Status func([]byte)
// http field 回调函数
HeaderFi…
-
不只是1.5包的问题,0.5包也需要修复下,比如http一行数据里,分两次,第一次header的field name解析完了,但是value还没解析出来,第二次解析剩余数据,也会出错,见代码。tcp “粘包” 是可能在stream的任意位置的,所以建议再加一些覆盖度更高的test
```golang
package main
import (
"fmt"
"github.co…