You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My life would be eased if it were possible to set the following options on Addr\Client after instantiation and not require them in the constructor:
$socketAddr
$socketPort
$requestTimeout
Instances can function perfectly well with default values. More importantly, though, the Client class is generally going to be a dependency of other classes and so must be injected. By allowing at least $requestTimeout to be modified after instantiation the classes that are composed of Client instances can expose the option to modify DNS resolution timeouts.
I realize that clients currently open a UDP connection at instantiation time and hold that for the life of the object. As a result, allowing the address values to be modified would add some logic to the current code.
The text was updated successfully, but these errors were encountered:
My life would be eased if it were possible to set the following options on
Addr\Client
after instantiation and not require them in the constructor:$socketAddr
$socketPort
$requestTimeout
Instances can function perfectly well with default values. More importantly, though, the
Client
class is generally going to be a dependency of other classes and so must be injected. By allowing at least$requestTimeout
to be modified after instantiation the classes that are composed ofClient
instances can expose the option to modify DNS resolution timeouts.I realize that clients currently open a UDP connection at instantiation time and hold that for the life of the object. As a result, allowing the address values to be modified would add some logic to the current code.
The text was updated successfully, but these errors were encountered: