Closed Sebbo94BY closed 1 year ago
Did you had the chance to take a look at this topic, @ronindesign ?
This is currently a blocker for using this library for bot features on PHP 8.1/8.2.
@ronindesign could you please take a look at this change?
Any updates regarding this, @ronindesign ?
This would probably also resolve issue #204.
Thank you for the contribution and testing as well, really appreciate it!
@ronindesign I am not sure, why we are throwing a
TransportException
here, if there is no data and line anymore.I've developed a client, which stays connected and regulary executes ServerQuery commands like getting the current clientlist and in case of timeouts, it sends a keepalive 50 seconds before the timeout occurs.
However... This
else
code here always causes aconnection lost
within the first 5 seconds after connecting, when the second ServerQuery command gets executed:I've manually removed this
else
part in my localvendor/
directory and then everything is working as expected. I also didn't notice any bad side effects when removing this piece of code. Without this code, my client stays connected for multiple hours without any issues.Could you please double-check this and decide, whether we can simply remove this code or if we need to fix something else?