Two server relays listening on the same IP address causes segmentation faults on Linux #1

Open
opened 2024-12-01 23:39:10 -05:00 by edshot99 · 0 comments
Owner

The relay should be able to bind to 127.0.0.1 and run on different ports when using different bot tokens, but for some reason this causes IXWebsocket to not bind or listen properly (despite what ss says) and causes a segmentation fault because libdpp is trying to send a message to an invalid IXWebsocket object.

This is more than likely a bug in IXWebsocket or Linux(?), but the temporary fix currently is to just run on a different IP address like 127.0.0.2, etc.

Self-test code should be added as well to prevent future segmentation faults, but as usual, write it down fix it later.

The relay should be able to bind to 127.0.0.1 and run on different ports when using different bot tokens, but for some reason this causes IXWebsocket to not bind or listen properly (despite what ss says) and causes a segmentation fault because libdpp is trying to send a message to an invalid IXWebsocket object. This is more than likely a bug in IXWebsocket or Linux(?), but the temporary fix currently is to just run on a different IP address like 127.0.0.2, etc. Self-test code should be added as well to prevent future segmentation faults, but as usual, write it down fix it later.
Sign in to join this conversation.
No Label
No Milestone
No Assignees
1 Participants
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: edshot99/NoobServer#1
No description provided.