Differences From Artifact [29f21ecbe7]:
- File
src/OFTCPSocket.m
— part of check-in
[6343e04dcd]
at
2012-10-17 20:16:10
on branch trunk
— Pass exceptions on async I/O.
This makes it possible to handle exceptions that occurred during async
I/O in the specified handler. (user: js, size: 15674) [annotate] [blame] [check-ins using]
To Artifact [da12c47fdd]:
- File src/OFTCPSocket.m — part of check-in [c9f2fe558e] at 2012-10-22 20:12:24 on branch trunk — Allocate space for sockaddr_storage, not sockaddr. (user: js, size: 15648) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
622 623 624 625 626 627 628 | { OFTCPSocket *newSocket; struct sockaddr_storage *addr; socklen_t addrLen; int newSock; newSocket = [[[[self class] alloc] init] autorelease]; | | | | 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 | { OFTCPSocket *newSocket; struct sockaddr_storage *addr; socklen_t addrLen; int newSock; newSocket = [[[[self class] alloc] init] autorelease]; addrLen = sizeof(*addr); @try { addr = [newSocket allocMemoryWithSize: addrLen]; } @catch (id e) { [newSocket release]; @throw e; } if ((newSock = accept(sock, (struct sockaddr*)addr, &addrLen)) == INVALID_SOCKET) { |
︙ | ︙ |