Commit Graph

36 Commits

Author SHA1 Message Date
Eugene K 8cb4515e53
fix crashes when close() is called without stream set 2023-01-02 10:59:58 -05:00
rentallect 370b57625e don't crash if read_stop is not set 2020-05-29 09:19:52 -04:00
Fedor Indutny 4916c3ba7e api: uv_link_errno 2016-06-04 19:25:26 -04:00
Fedor Indutny b03d9a4c2f src: fix non-constant value error 2016-06-04 16:05:52 -04:00
Fedor Indutny af170cc9bb api: experimental error reporting 2016-06-04 15:44:18 -04:00
Fedor Indutny a66bb042e0 Revert "api: `uv_link_strerror`"
This reverts commit 0799c7c91e.
2016-06-04 14:46:01 -04:00
Fedor Indutny 0799c7c91e api: `uv_link_strerror` 2016-06-04 14:37:26 -04:00
Fedor Indutny 41a0b873de defaults: stop reading on error 2016-06-04 10:33:26 -04:00
Fedor Indutny d7e448cd03 api: rename default cb 2016-06-04 10:26:23 -04:00
Fedor Indutny 201448c9bb src: error or NULL links they happen on close
Right after `uv_link_close()` all links will be unchained, meaning that
they `link->parent` is NULL. Instead of crashing on calls like:

`uv_link_try_write(link->parent, ...)`

Make them return `UV_EFAULT`, indicating that no parent is present
anymore. Alternatively, these checks could be done in user code, but it
will make it too cumbersome.
2016-06-03 14:52:38 -04:00
Fedor Indutny 1d9649b1ae src: experiment fix 2016-06-03 13:08:52 -04:00
Fedor Indutny fe32ad3b58 src: fix experiment 2016-06-03 13:06:48 -04:00
Fedor Indutny 106064e396 src: more experiments 2016-06-03 13:06:06 -04:00
Fedor Indutny 1c8f4ad097 src: fix the close depth tracking for read/alloc 2016-06-03 13:02:43 -04:00
Fedor Indutny 01aa975708 src: attempt at non-breaking close_cb 2016-06-03 13:01:17 -04:00
Fedor Indutny 68ac3682f6 observer: fix 0-initialization 2016-06-02 20:53:19 -04:00
Fedor Indutny 087b8ef36b api: default method implementations 2016-05-31 20:34:14 -04:00
Fedor Indutny 8f7cfa3464 api: lots of text 2016-05-28 12:08:03 -04:00
Fedor Indutny d4069cc59b api: inherit structs from uv_link_t 2016-05-27 23:50:46 -04:00
Fedor Indutny 3523bbda22 src: simplify uv_link_close 2016-05-27 21:40:29 -04:00
Fedor Indutny 9f6eff6911 include: close callbacks 2016-05-27 21:06:45 -04:00
Fedor Indutny d7de504f56 api: simplify 2016-05-27 12:16:05 -04:00
Fedor Indutny 28facffd61 uv_link_t: do not crash on NULL buf 2016-05-27 11:59:14 -04:00
Fedor Indutny 800432e83e include: add `arg` to write/shutdown 2016-05-27 09:59:45 -04:00
Fedor Indutny 48828a62ee uv_link_t: pass source to write/shutdown 2016-05-26 18:10:04 -04:00
Fedor Indutny b0a811cf3b gyp: include_dirs=. 2016-05-26 14:44:26 -04:00
Fedor Indutny e018867ffa include: invoke => propagate 2016-05-26 04:01:13 -04:00
Fedor Indutny f3be4240e5 example: initial 2016-05-26 03:42:56 -04:00
Fedor Indutny 27b6c247c5 src: move methods to separate read-only structure 2016-05-26 02:50:14 -04:00
Fedor Indutny 1e6358c6e2 test: kind of run all 2016-05-26 02:06:03 -04:00
Fedor Indutny a4e614177a test: uv_link_observer_t test 2016-05-26 01:58:55 -04:00
Fedor Indutny 563174a689 uv_link_t: default alloc_cb/read_cb 2016-05-26 01:38:26 -04:00
Fedor Indutny 476e00fb73 link: further chain validation 2016-05-26 00:58:25 -04:00
Fedor Indutny 5b9130d710 src: stub out observer 2016-05-26 00:57:14 -04:00
Fedor Indutny 5649bb2eef src: shuffle files around 2016-05-26 00:27:08 -04:00
Fedor Indutny c3f5553678 initial 2016-05-25 18:15:40 -04:00