Skip to content

Can you add RST_STREAM frame to terminate stream to Swoole\Coroutine\Http2\Client? #4059

@InteLigent

Description

@InteLigent

Please answer these questions before submitting your issue. Thanks!

  1. What did you do? If possible, provide a simple script for reproducing the error.

I want to have buffer connections to same host. I transfer bigger data between endpoints, but at any moment, by business logic a decide terminate stream and don't want more read response. But, i don't want close main connection, so as not to interrupt other threads.

  1. What did you expect to see?

New method terminate()

  1. What did you see instead?

  2. What version of Swoole are you using (show your php --ri swoole)?

Swoole => enabled
Author => Swoole Team team@swoole.com
Version => 4.6.1
Built => Jan 11 2021 12:30:02
coroutine => enabled with boost asm context
trace_log => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
sockets => enabled
openssl => OpenSSL 1.0.2k-fips 26 Jan 2017
http2 => enabled
json => enabled
curl-native => enabled
pcre => enabled
zlib => 1.2.7
mutex_timedlock => enabled
pthread_barrier => enabled
futex => enabled
mysqlnd => enabled
async_redis => enabled

Directive => Local Value => Master Value
swoole.enable_coroutine => On => On
swoole.enable_library => On => On
swoole.enable_preemptive_scheduler => Off => Off
swoole.display_errors => On => On
swoole.use_shortname => On => On
swoole.unixsock_buffer_size => 8388608 => 8388608

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions