pico

created pr with 105.1 on 2026-01-25T17:03:08Z · by c8ef7d19
added 105.2 on 2026-01-27T04:11:48Z · by c8ef7d19
1: 603ca6e = 1: 603ca6e chore(pubsub): add more tests
2: 501c042 ! 2: 17e00b2 feat(pubsub): round robin
added 105.3 on 2026-01-29T01:03:33Z · by c8ef7d19
1: 603ca6e = 1: 603ca6e chore(pubsub): add more tests
2: 17e00b2 = 2: 17e00b2 feat(pubsub): round robin
-: ------- > 3: e3136bd fix(pubsub): check for eof before processing and skip empty byte reads
-: ------- > 4: 9a6d19e fix: rr
-: ------- > 5: 5b3f3a1 fix: sending 0 byte read
added 105.4 on 2026-02-01T17:16:43Z · by c8ef7d19
1: 603ca6e = 1: 603ca6e chore(pubsub): add more tests
2: 17e00b2 = 2: 17e00b2 feat(pubsub): round robin
3: e3136bd = 3: e3136bd fix(pubsub): check for eof before processing and skip empty byte reads
4: 9a6d19e = 4: 9a6d19e fix: rr
5: 5b3f3a1 = 5: 5b3f3a1 fix: sending 0 byte read
-: ------- > 6: 4fff471 refactor: fixes
-: ------- > 7: d0dfc85 chore: SetDispatch on Broker
changed status to accepted on 2026-02-23T02:02:07Z · by c8ef7d19
cmds
checkout latest patchset:
ssh pr.pico.sh print 105 | git am -3
checkout any patchset in a patch request:
ssh pr.pico.sh print 105.[rev] | git am -3
add changes to patch request:
git format-patch main --stdout | ssh pr.pico.sh pr add 105
set PR to open (enables RSS notifications):
ssh pr.pico.sh pr open 105
set PR to draft (stops RSS notifications):
ssh pr.pico.sh pr draft 105
+19 -11 pkg/pubsub/broker.go #
......@@ -105,20 +105,20 @@ func (b *BaseBroker) Connect(client *Client, channels []*Channel) (error, error)
105105 data := make([]byte, 32*1024)
106106 n, err := client.ReadWriter.Read(data)
107107
108- // Check for EOF before processing
109- if err != nil {
110- if errors.Is(err, io.EOF) {
108+ // TODO: Skip empty reads
109+ /*
110+ if err != nil {
111+ if errors.Is(err, io.EOF) {
112+ return
113+ }
114+ inputErr = err
111115 return
112116 }
113- inputErr = err
114- return
115- }
116-
117- // Skip empty reads
118- if n == 0 {
119- continue
120- }
121117
118+ if n == 0 {
119+ continue
120+ }
121+ */
122122 data = data[:n]
123123
124124 channelMessage := ChannelMessage{
......@@ -167,6 +167,14 @@ func (b *BaseBroker) Connect(client *Client, channels []*Channel) (error, error)
167167 }
168168
169169 sendwg.Wait()
170+
171+ if err != nil {
172+ if errors.Is(err, io.EOF) {
173+ return
174+ }
175+ inputErr = err
176+ return
177+ }
170178 }
171179 }()
172180 }
Back to top