Skip to content

Add link recovery on EOF for TCP header#24

Closed
gq0 wants to merge 5 commits intogoburrow:masterfrom
grid-x:master
Closed

Add link recovery on EOF for TCP header#24
gq0 wants to merge 5 commits intogoburrow:masterfrom
grid-x:master

Conversation

@gq0
Copy link
Copy Markdown

@gq0 gq0 commented Sep 14, 2017

Solar Edge PV inverters almost always won't respond to the first ACK request, but consecutive requests come through. Therefore, on demand, it 'd be good to retry to establish a new connection and try it again. The headline of this repository say fault-tolerant; therefore, I think this feature comes in handy 😸

@nqv nqv self-assigned this Sep 21, 2017
Comment thread tcpclient.go Outdated
}
}

func (mb *tcpTransporter) processResponse(aduRequest []byte) (aduResponse []byte, err error) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you please keep the variable name data instead of aduRequest? I think io.ReadFull(mb.conn, aduRequest[:]) is a bit confusing.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, I add the feedback in latest commit + it should be buildable with older versions of go now as well. Thanks for the input.

gq0 added 2 commits September 29, 2017 07:14
…sData and replace time.Until to make it buildable with older go versions
@gq0
Copy link
Copy Markdown
Author

gq0 commented Oct 15, 2017

Changed the branch, please see #25

@gq0 gq0 closed this Oct 15, 2017
kgritesh pushed a commit to pashi-corp/modbus that referenced this pull request Apr 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants