Allow getRemoteAddress to return the PID of a connecting Unix connection
還沒有人認領這個 Issue。
評估
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 新手友好度
- 45/100
- Issue 類型
- 功能
- 描述清晰度
- 基本清楚
- 活躍度
- 停滯
- 技術堆疊
- php
- 領域
- networking
研究方向
Start by locating the getRemoteAddress entry point used by UnixServer connections and inspect how Unix and non-Unix addresses are currently handled. Verify the available socket peer-credential behavior and existing coverage, then ensure a connecting Unix client exposes its PID while other address handling remains unchanged.
由索引模型根據 Issue 內容生成。
描述
Currently when dealing with a UnixServer, its connections do not return a value for getRemoteAddress, the returned value is actually NULL.
I`d like it to return the PID of the connecting client. Is that something you would integrate in this library?
public function getRemoteAddress()
{
if($this->unix){
$socket = socket_import_stream($this->stream);
return socket_get_option($socket, SOL_SOCKET, 17 /*SO_PEERCRED*/);
}
return $this->parseAddress(@stream_socket_get_name($this->stream, true));
}
See http://php.net/manual/en/function.socket-get-option.php#101380
- 主要語言
- PHP
- 星號
- 1.3k
- 分支
- 160
- PR 合併指標
- 30 天內沒有已合併 PR
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
reactphp/socket 的其他 Issue
-
question
難度 3/5 1-2 天 新手友好度 45/100
-
bug
難度 4/5 3-5 天 新手友好度 45/100
-
maintenance
難度 5/5 一週以上 新手友好度 20/100
-
help wanted new feature
難度 5/5 一週以上 新手友好度 20/100
-
Support STARTTLS 未關閉help wanted new feature
難度 5/5 一週以上 新手友好度 25/100
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 70/100
-
難度 2/5 1-3 小時 新手友好度 75/100
-
難度 1/5 1 小時以內 新手友好度 85/100
-
難度 2/5 1-3 小時 新手友好度 75/100
hector-jewell/food-delivery-system-for-restaurant-using-php#1311 ·
-
難度 2/5 1-3 小時 新手友好度 65/100
Sylius/SyliusGridBundle#501 ·