Differences From Artifact [5bed299304]:
- File src/OFTCPSocket.m — part of check-in [da6b3d26cb] at 2011-01-01 20:19:54 on branch trunk — Change license. (user: js, size: 9273) [annotate] [blame] [check-ins using]
To Artifact [94deb56f45]:
- File
src/OFTCPSocket.m
— part of check-in
[1404d33024]
at
2011-01-08 15:57:35
on branch trunk
— Ignore SIGPIPE when using OFStream.
SIGPIPE is quite useless and contraproductive as we throw an
OFWriteFailedException anyway. (user: js, size: 9273) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
348 349 350 351 352 353 354 | newsock = [[[isa alloc] init] autorelease]; addrlen = sizeof(struct sockaddr); @try { addr = [newsock allocMemoryWithSize: sizeof(struct sockaddr)]; } @catch (id e) { | | | | 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 | newsock = [[[isa alloc] init] autorelease]; addrlen = sizeof(struct sockaddr); @try { addr = [newsock allocMemoryWithSize: sizeof(struct sockaddr)]; } @catch (id e) { [newsock release]; @throw e; } if ((s = accept(sock, addr, &addrlen)) == INVALID_SOCKET) { [newsock release]; @throw [OFAcceptFailedException newWithClass: isa]; } newsock->sock = s; newsock->sockAddr = addr; newsock->sockAddrLen = addrlen; |
︙ | ︙ |