Comments (6)
I forgot to mention that I am still non arc. 7.0.X
from cocoaasyncsocket.
I noticed there was an update that closes the file descriptors in closeWithError,
but I don't know if they cover the same path.
I believe it does. I tested it, and the file descriptor is getting closed. I added some extra logs just now for testing.
Am I missing something? Are you sure the file descriptor isn't getting closed?
from cocoaasyncsocket.
I a sure the file descriptor was not getting closed, but that was before we pulled Kyle Fuller's fix:
Fix an issue where a refused connection will not be cleaned up properly. 5c28a2a/
The particulars, as best I understand it, happened when we tried to connect to a host using GCDAsyncSocketMsgController:
- (id)initWithDelegate: ( id ) inDelegate
queue: ( dispatch_queue_t ) inDispatchQueue
interface: ( NSString * ) inInterface
host: ( NSString * ) inHost
port: ( UInt16 ) inPort ;
When the host wasn't on the interface specified, or was explicity rejected, the connection would fail, causing the file descriptor leak.
Please let me know particularly if our patch will cause problems, or if it's safe for us to remove our patch because Kyle's fix covers the same problem in a better place.
Ken
On May 14, 2012, at 3:05 AM, Robbie Hanson wrote:
I noticed there was an update that closes the file descriptors in closeWithError,
but I don't know if they cover the same path.I believe it does. I tested it, and the file descriptor is getting closed. I added some extra logs just now for testing.
Am I missing something? Are you sure the file descriptor isn't getting closed?
Reply to this email directly or view it on GitHub:
#52 (comment)
from cocoaasyncsocket.
You meant this fix right: 6f46421
Yes, this fix should also cover the same problem.
from cocoaasyncsocket.
sorry, i copied the parent hash.
Yes, that is the fix I was referring to.
On May 14, 2012, at 11:43 AM, Robbie Hanson wrote:
You meant this fix right: 6f46421
Yes, this fix should also cover the same problem.
Reply to this email directly or view it on GitHub:
#52 (comment)
from cocoaasyncsocket.
Cool. Marking the issue as closed. But let me know if you see any further problems with this, and I reopen the issue.
from cocoaasyncsocket.
Related Issues (20)
- Crash on iOS 16(20A362):CFSocketInvalidate + 132 HOT 18
- GCDAsyncUdpSocket 在iOS16上无法弹起本地网络权限申请窗口 HOT 2
- Xcode14.0 App Store Connect Operation Error HOT 5
- pod集成,iOS16.0 警告提示
- App Crashes with EXEC_BAD_ACCESS in GCDAsyncSocket.m HOT 4
- If two apps use the same port, I get an error. HOT 1
- Is this still maintained? HOT 1
- Is this library supported for iOS 13+ ? HOT 2
- Error Domain=NSPOSIXErrorDomain Code=60 "Operation timed out" HOT 1
- [!] Error installing CocoaAsyncSocket [!] /usr/bin/git clone https://github.com/robbiehanson/CocoaAsyncSocket.git /var/folders/44/pdz2cl0561z4jh2377tl293h0000gp/T/d20221207-3976-gkz985 --template= --single-branch --depth 1 --branch 7.6.5 HOT 1
- 🦅ALL IN ONE🌎
- crashed on iOS 16.1, SIGTRAP HOT 2
- App crash in Xcode 14 and iOS 16 HOT 6
- how to creat a unix domain socket on iOS device HOT 1
- the app references non-public selectors in cocoaAsyncSocket HOT 1
- [GCDAsyncSocket closeWithError:] crash, iOS16 HOT 4
- Not able to build the framework after upgrading Xcode to 14.3 HOT 1
- Not work with bitcode enable HOT 2
- GCDAsyncSocket with local ip address changed HOT 5
- socket gets disconnected with nil error, as soon as didAccept delegate is called HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cocoaasyncsocket.