swoole / phpkafka

PHP Kafka client is used in PHP-FPM and Swoole. PHP Kafka client supports 50 APIs, which might be one that supports the most message types ever.
https://longlang.org/
Apache License 2.0
271 stars 47 forks source link

在swoole服务中, kafka生产数据报错 #56

Closed davisphper closed 3 years ago

davisphper commented 3 years ago
# 粘贴到这里
[1] 25961
PHP 7.2.21 (cli) (built: Aug 13 2019 13:30:58) ( NTS )
Copyright (c) 1997-2018 The PHP Group
Zend Engine v3.2.0, Copyright (c) 1998-2018 Zend Technologies
    with Zend OPcache v7.2.21, Copyright (c) 1999-2018, by Zend Technologies

swoole

Swoole => enabled
Author => Swoole Team <team@swoole.com>
Version => 4.4.3
Built => Aug 13 2019 14:26:13
coroutine => enabled
epoll => enabled
eventfd => enabled
signalfd => enabled
cpu_affinity => enabled
spinlock => enabled
rwlock => enabled
http2 => enabled
pcre => enabled
zlib => enabled
mutex_timedlock => enabled
pthread_barrier => enabled
futex => 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
[1]+  Done                    /usr/bin/php72 -v

longlang/phpkafka                  v1.2.0          A kafka client. Support php-fpm and Swoole.
Yurunsoft commented 3 years ago

用 Swoole 4.7试一下,首先排除疑似 Swoole 4.4 的问题,这个包不支持 Swoole 4.4 的。

云服务具体是哪家的?

davisphper commented 3 years ago

用 Swoole 4.7试一下,首先排除疑似 Swoole 4.4 的问题,这个包不支持 Swoole 4.4 的。

云服务具体是哪家的?

腾讯云

Yurunsoft commented 3 years ago

已单独沟通解决

xinglxing commented 2 years ago

已单独沟通解决

请教一下,这个问题怎么解决的?我现在也遇到这个问题了,版本也是 1.2.1

a289459798 commented 1 year ago

我也遇到这个问题,1.2.1 , swoole版本是4.5.2