問題タブ [anyevent]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
perl - macOS High Sierra で Cpan を使用して AnyEvent::DBI をインストールできない
AnyEvent::DBI for perl v5.18.2 を macOS High Sierra 10.13.3 にインストールする際に問題が発生しました。私が理解しているように、AnyEvent::Fork 依存モジュールはインストールされていません。CPAN からの情報は次のとおりです。
以前のバージョンの macOS で最も興味深いのは、このモジュールをインストールしたことです。
perl - https サイトへのプロキシを要求する際の Perl エラー。AnyEvent ステータス 596
https サイトへの https をサポートするプロキシ経由でリクエストする場合。エラー 'Reason' => 'ssl23_get_server_hello come: unknown protocol', 'Status' => 596,
私は AnyEvent ライブラリを使用しています。接続要求に問題があると思われますが、まったく解決できません。ヒントに非常に感謝します。
tcp_connect メソッドも必要だと思われますが、設定方法がわかりません。
したがって、プロキシは LWP で機能します
残念ながら、有料であるため、完全なプロキシを作成することはできません。しかし、彼がいなければ、私は書くことができます。
multithreading - Perl: multithreaded server with Coro and AnyEvent
I am a newbie in Perl, so in educational purposes I am developing multithreaded server using AnyEvent and Coro. The client sends to server list of directory paths and server responses with listing of these directories.
I am using tcp_server and AnyEvent::Handle for connections handling, and for each client I want server to check thread pool (which is actually pool of coros) for free coro to handle request. When handling request is finished, I want coro to wait for another client instead of finishing.
However, it seems like at the end of handle_request sub, coro is destroyed and not avaliable anymore.
I have already tried using infinite loop inside handle_request, but this way everything stops working at all. Do you have any ideas how to fix that? I suppose using Coro::AnyEvent to integrate coroutines into event loop might be solution. Can it be helpful in my case?
Thans for your help.