Commit 8bdef58
committed
ext/openssl/xp_ssl: eliminate poll() when MSG_DONTWAIT is available
If there is a zero timeout and MSG_DONTWAIT is available (or the
socket is non-blocking), the poll() call is not necessary, and we can
just call recv() right away.1 parent 42817cf commit 8bdef58
1 file changed
+5
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2395 | 2395 | | |
2396 | 2396 | | |
2397 | 2397 | | |
2398 | | - | |
| 2398 | + | |
| 2399 | + | |
| 2400 | + | |
| 2401 | + | |
2399 | 2402 | | |
2400 | 2403 | | |
2401 | 2404 | | |
| |||
2413 | 2416 | | |
2414 | 2417 | | |
2415 | 2418 | | |
2416 | | - | |
| 2419 | + | |
2417 | 2420 | | |
2418 | 2421 | | |
2419 | 2422 | | |
| |||
0 commit comments