History

no SOL_TCP

Sigrid Solveig Haflínudóttir committed 3 years ago

Commit 8a857151 parent d1d3a8d1 file · +1 −1Browse files

Unified · Split

9gc.c+1−1
@@ -155,7 +155,7 @@ dial(char *s) · 154 unmodified lines
155155 if((f = socket(a->ai_family, a->ai_socktype, a->ai_protocol)) < 0)
156156 continue;
157157 if(connect(f, a->ai_addr, a->ai_addrlen) == 0){
158− setsockopt(f, SOL_TCP, TCP_NODELAY, &yes, sizeof(yes));
158+ setsockopt(f, SOL_SOCKET, TCP_NODELAY, &yes, sizeof(yes));
159159 break;
160160 }
161161 close(f);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t