HaxeFoundation / HaxeFoundation/hxcpp

On iOS, SIGPIPE kill the app.

Open
#317 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
330
Forks
227
Avg merge
2d 16h
Merged PRs (30d)
18

Description

Hi,
I use openfl to build an haxe application on iOS. The application connects to a Neko server. When the connection is closed, my iOS application is closed by the system. Haxe throw no exception. I can't catch it.

MSG_NOSIGNAL may not be defined in iOS.
socket.cpp line 233 : dlen = recv(sock, buffer_data(buf) + p, l, MSG_NOSIGNAL);
socket.cpp line 252 : ret = recv(sock,(char *)&cc,1,MSG_NOSIGNAL);
socket.cpp line 279 : slen = send(sock,cdata,datalen,MSG_NOSIGNAL);

The single line "signal(SIGPIPE, SIG_IGN);" may solve it.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.