I have a StreamingSocket. If the remote socket closes without warning, the next time I do a send it crashes:
libsystem_kernel.dylib`__sendto: 0x7fff95f2a4e0 <+0>: movl $0x2000085, %eax 0x7fff95f2a4e5 <+5>: movq %rcx, %r10 0x7fff95f2a4e8 <+8>: syscall -> 0x7fff95f2a4ea <+10>: jae 0x7fff95f2a4f4 ; <+20> 0x7fff95f2a4ec <+12>: movq %rax, %rdi 0x7fff95f2a4ef <+15>: jmp 0x7fff95f25c78 ; cerror 0x7fff95f2a4f4 <+20>: retq 0x7fff95f2a4f5 <+21>: nop 0x7fff95f2a4f6 <+22>: nop 0x7fff95f2a4f7 <+23>: nop
Callstack:
Juce Message Thread (1)Queue : com.apple.main-thread (serial) #0 0x00007fff95f2a4ea in __sendto () #1 0x000000010a7309e4 in juce::StreamingSocket::write(void const*, int) at /Users/rrabien/JUCE-OSX/modules/juce_core/network/juce_Socket.cpp:428
Juce disables sig_pipe, so I'm not sure why writing to a closed socket is an issue. Shouldn't it just return an error?