Skip to content

Commit

Permalink
fix(neuron): remove max receive size (#2820)
Browse files Browse the repository at this point in the history
Signed-off-by: Jiyong Huang <[email protected]>
  • Loading branch information
ngjaying committed Apr 28, 2024
1 parent 687b1a0 commit f08d0b3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/io/neuron/connection.go
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ func connect(ctx api.StreamContext, url string, info *conninfo) error {
if err != nil {
return err
}
err = info.sock.SetOption(mangos.OptionMaxRecvSize, 0)
if err != nil {
return err
}
info.sock.SetPipeEventHook(func(ev mangos.PipeEvent, p mangos.Pipe) {
switch ev {
case mangos.PipeEventAttached:
Expand Down

0 comments on commit f08d0b3

Please sign in to comment.