Nicolas Martyanoff on Nostr: If you're writing a socket and get EPIPE (in Go that would be an op.SyscallError ...
If you're writing a socket and get EPIPE (in Go that would be an op.SyscallError value with Err set to syscall.EPIPE), the connection is down. When that happens for FastCGI connections in Boulevard, I try to reconnect and write again (once of course). This is a simple way to deal with FastCGI servers restarting without clients being affected.
Published at
2025-02-09 11:57:40Event JSON
{
"id": "915a24b1f3a32e1f8f5ed583ff9c3d3fe3b6e4f347b46abe845d67c9b1160570",
"pubkey": "6d91e7b056ab18986298e04a8b278a5e070a726487fd30a599427c79db9070e9",
"created_at": 1739102260,
"kind": 1,
"tags": [
[
"proxy",
"https://fosstodon.org/users/galdor/statuses/113973805771776389",
"activitypub"
]
],
"content": "If you're writing a socket and get EPIPE (in Go that would be an op.SyscallError value with Err set to syscall.EPIPE), the connection is down. When that happens for FastCGI connections in Boulevard, I try to reconnect and write again (once of course). This is a simple way to deal with FastCGI servers restarting without clients being affected.",
"sig": "d3ab4cdd3c2c45b103490201b47eef64199f6b6afbb18f2d2dd4c857c77b83fefc4da2ea97b91f743628196576a8af8d6280333136b167236a4a2d333c9cee02"
}