-
Notifications
You must be signed in to change notification settings - Fork 1k
remove feof() check on connection. this check fails under Windows wh… #1177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove feof() check on connection. this check fails under Windows wh… #1177
Conversation
…n connecting to some (but not all) servers
@ramunasd thanks for the feedback. you are correct of course. please review revised PR. EDIT: I just realized I don't know how old PHP version PhpAmqpLib is supporting. |
p.s. I am trying to contact syadmin for the RabbitMQ server I'm unable to connect to with the master-branch code, to see if there is any useful info in the logs. If so I will post it here. Also - is there any publicly-accessible RabbitMQ server on Linux host which I can test against? |
the sysadmin for this RabbitMQ server sent me some log excerpts. I can't match the IP address (seems to be private) but the timing matches when I was trying to connect, with the original PhpAmqpLib code: message-broker log excerpt:
load-balancer log excerpt:
knowing very little about Rabbit MQ I can't tell if this information is useful; but perhaps someone will find a clue... if I'm reading it right, "connection reset by peer" seems to indicate the PhpAmqpLib code terminated the connection before it was established. |
fix problem connecting to some (but not all) servers under Windows
note: I don't know how to submit a valid test for this PR because I cannot give credentials for the private server where connection fails, due to confidential information