010c215c4b
Add warning
2019-08-22 22:20:51 +02:00
e8e41f3882
Merge remote-tracking branch 'o/line-reader'
2019-08-22 22:14:39 +02:00
Niklas Keller
ff5aa41e5f
Add LineReader::getBuffer()
2019-08-22 22:09:47 +02:00
Niklas Keller
94f4322c7d
Fix LineReader order
2019-08-22 21:57:02 +02:00
27034fc345
Readd b flag
2019-08-22 21:47:29 +02:00
ea01c9a051
Refactor
2019-08-22 21:45:16 +02:00
1b3c043451
Merge remote-tracking branch 'o/line-reader'
2019-08-22 21:41:01 +02:00
fdc28ee816
Merge
2019-08-22 21:39:45 +02:00
Niklas Keller
2b27515138
Make LineReaderTest compatible with PHP 7.0
2019-08-22 21:33:04 +02:00
Niklas Keller
bb5e38722e
Move LineReaderTest to correct directory
2019-08-22 21:04:24 +02:00
Niklas Keller
a0a418e01e
Add LineReader
...
Closes #63 .
2019-08-22 20:55:09 +02:00
Niklas Keller
5d602c5c7a
Delete Gemfile.lock to prevent useless GitHub security notices
2019-08-22 20:30:00 +02:00
Aaron Piotrowski
47908f8e8b
Return Failure instead of throwing
...
Closure should fail returned promise, not throw directly from method call.
2019-07-26 16:22:49 -05:00
eaec19ea30
Add async readline/echo and add composer commands
2019-07-15 16:16:07 +02:00
Niklas Keller
22113f2f14
Delete Makefile
2019-06-03 23:54:51 +02:00
Niklas Keller
6ee7b6b37c
Update LICENSE date
2019-06-03 23:54:24 +02:00
Niklas Keller
c75af3778b
Fix ResourceOutputStream closed detection ( #60 )
...
The previous mechanism with feof doesn't work for systemd launched processes.
Fixes #58 .
2019-06-03 23:45:17 +02:00
Niklas Keller
24484fa356
Move testClosedRemoteSocketWithFork to ResourceInputStreamTest
...
Whether writing to the socket fails is implementation defined, see https://stackoverflow.com/a/4022160/2373138 .
Shutting down the read side of the socket generally doesn't have any effect on the peer, seems like this is due to the local host implementation on Linux.
2019-06-03 23:24:59 +02:00
Niklas Keller
33daa23ab1
Add 'b' flag to web SAPI streams
2019-06-03 23:05:11 +02:00
d8cc314d62
Add web SAPI input/output stream getter functions ( #61 )
2019-06-03 23:01:43 +02:00
e7bde57f91
Last name change
2019-06-02 11:38:15 +02:00
a7b2cc8d95
Change function names
2019-06-01 13:21:06 +02:00
bc191a8380
phpcs fix
2019-05-21 15:45:27 +02:00
94caa13d49
Add web input/output stream getter functions
2019-05-21 15:40:32 +02:00
Gabriel Ostrolucký
d5cd42a765
Add chunksize setter to Resource*Stream classes ( #55 )
...
Fixes #50 .
2019-03-31 16:51:36 +02:00
Niklas Keller
2120bdd46b
Revert "Throw new exception carrying $chunk when fwrite returns 0"
...
This reverts commit eb4d03504d
.
The previous commit was incomplete and needs additional work.
2019-03-11 20:12:45 +01:00
Bob Weinand
0652524782
Merge pull request #52 from ostrolucky/chunk-exception
...
Throw new exception carrying $chunk when fwrite returns 0
2019-03-11 12:59:50 +01:00
Gabriel Ostrolucký
eb4d03504d
Throw new exception carrying $chunk when fwrite returns 0
2019-03-05 00:11:39 +01:00
Niklas Keller
6bbfcb6f47
Add docs/asset to export-ignore
2018-12-27 19:08:06 +01:00
Niklas Keller
aa2ebfe17b
Update dependency lock file
2018-12-25 13:42:01 +01:00
Niklas Keller
1de2fd1a17
Test on PHP 7.3
2018-12-25 13:18:57 +01:00
Niklas Keller
56f719633f
Fix code style
2018-12-25 13:18:26 +01:00
Niklas Keller
3a4e493d39
Change #47 test case
2018-12-25 13:13:28 +01:00
Niklas Keller
91d0d18b60
Change #47 test case
2018-12-25 13:04:03 +01:00
Niklas Keller
23d720fbb1
Add test case for #47
2018-12-25 12:59:12 +01:00
Niklas Keller
37b9ab16bb
Solve performance issues with very large chunks
...
Very large chunks need to be copied every time there's a partial write, which is pretty problematic. Instead of doing an almost full copy of the full chunk every time, this patch splits very large chunks into multiple smaller chunks automatically.
Fixes #41 .
2018-10-22 14:37:37 -05:00
Aaron Piotrowski
2dda482685
Add getStd*() functions
2018-10-22 20:36:00 +02:00
Niklas Keller
17fae3bcec
Fix code style
2018-10-03 17:37:23 +02:00
Niklas Keller
0b282a7321
Add infection and tests
2018-09-23 21:30:08 +02:00
Niklas Keller
f31f990b80
Fix Travis config
2018-09-22 16:04:00 +02:00
Niklas Keller
d161589772
Apply PSR-2
2018-09-22 16:04:00 +02:00
Niklas Keller
73257690b0
Fix import order
2018-09-22 16:04:00 +02:00
Niklas Keller
a4cf31f089
Add buffer test
2018-09-22 16:04:00 +02:00
Niklas Keller
75aa20de7c
Add buffer function
...
This simplifies buffering streams by not having to construct a Message / Payload object.
2018-09-22 16:04:00 +02:00
Niklas Keller
bd2de267cc
Update shared documentation files
...
This is an automated commit. Please report any issues to https://github.com/amphp/website-tools .
2018-05-16 16:15:55 +02:00
Aaron Piotrowski
24b2530ec7
Remove exception overwrite
...
Copy/paste oversight.
2018-04-05 09:44:39 -05:00
Niklas Keller
1b75b122e6
Fix ZlibInputStreamTest::testRead() for Windows
2018-04-04 07:33:09 +02:00
Aaron Piotrowski
da357d1579
Proper fix for remote closed streams
...
Fixes #40 . Streams on MacOS (and possibly FreeBSD) that are closed by the remote still allow writing, returning a non-zero from fwrite(). EOF then is false, since data was written to the buffer. EOF needed to be checked before calling fwrite().
2018-04-03 19:08:18 -05:00
Niklas Keller
5403767515
Use xdebug instead of phpdbg for coverage
...
PHPDBG segfaults currently.
2018-04-03 22:15:31 +02:00
Niklas Keller
1184827fd8
Revert "Update test"
...
This reverts commit 5ba0469d7a
.
The test should verify that the socket is detected as closed even if the
work is still alive and has an open FD.
2018-04-03 22:12:42 +02:00