|
|
@ -18,7 +18,7 @@ ssize_t socket_fastopen_connect6(int s,const char* ip,uint16 port,uint32_t scope
|
|
|
|
r=socket_send6_flag(s,buf,len,ip,port,scope_id,MSG_FASTOPEN);
|
|
|
|
r=socket_send6_flag(s,buf,len,ip,port,scope_id,MSG_FASTOPEN);
|
|
|
|
else
|
|
|
|
else
|
|
|
|
r=socket_connect6(s,ip,port,scope_id);
|
|
|
|
r=socket_connect6(s,ip,port,scope_id);
|
|
|
|
if (r==-1 && errno==ENOTCONN) {
|
|
|
|
if (r==-1 && (errno==ENOTCONN || errno==EPIPE)) {
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
/* apparently the kernel does not support TCP fast open */
|
|
|
|
/* apparently the kernel does not support TCP fast open */
|
|
|
|
r=socket_connect6(s,ip,port,scope_id);
|
|
|
|
r=socket_connect6(s,ip,port,scope_id);
|
|
|
|