Skip to content

Commit e026051

Browse files
committed
Set CFSocket option for native size socket handling
1 parent 0fee3f1 commit e026051

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/MacVim/MMBackend.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3448,6 +3448,10 @@ - (id)initWithChannel:(channel_T *)c part:(int)p
34483448
kCFSocketReadCallBack,
34493449
&socketReadCallback,
34503450
&ctx);
3451+
CFOptionFlags opt = CFSocketGetSocketFlags(socket);
3452+
opt &= ~(kCFSocketCloseOnInvalidate|
3453+
kCFSocketAutomaticallyReenableReadCallBack);
3454+
CFSocketSetSocketFlags(socket, opt);
34513455
runLoopSource = CFSocketCreateRunLoopSource(NULL,
34523456
socket,
34533457
0);

0 commit comments

Comments
 (0)