Relay: client is not reusing connections #38

Open
opened 2024-11-18 19:58:37 -05:00 by amigan · 1 comment
Owner
0.xenon:~/stillbox rc0 % truss -f ./stillbox serve --config config.test.yaml |& grep accept
32948: __sysctl("sysctl.name2oid kern.ipc.soacceptqueue",2,0x870108a10,0x870079b28,0x87003e3f0,22) = 0 (0x0)
32948: __sysctl("kern.ipc.soacceptqueue",3,0x870079b84,0x870079b88,0x0,0) = 0 (0x0)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7)
32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable'
``` 0.xenon:~/stillbox rc0 % truss -f ./stillbox serve --config config.test.yaml |& grep accept 32948: __sysctl("sysctl.name2oid kern.ipc.soacceptqueue",2,0x870108a10,0x870079b28,0x87003e3f0,22) = 0 (0x0) 32948: __sysctl("kern.ipc.soacceptqueue",3,0x870079b84,0x870079b88,0x0,0) = 0 (0x0) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) = 7 (0x7) 32948: accept4(0x5,0x870079ba0,0x870079c0c,0x30000000) ERR#35 'Resource temporarily unavailable' ```
amigan added the
Kind/Bug
Priority
High
labels 2024-11-18 19:59:11 -05:00
amigan self-assigned this 2024-11-18 19:59:18 -05:00
Author
Owner

Also make it handle upstream errors (connection refused, etc) more gracefully by not complaining (or even actually attempting connection) on every call.

Also make it handle upstream errors (connection refused, etc) more gracefully by not complaining (or even actually attempting connection) on every call.
amigan added the
Component
Backend
label 2024-12-17 12:40:31 -05:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: amigan/stillbox#38
No description provided.