jacobsa / go-serial

A Go library for dealing with serial ports.
Apache License 2.0
626 stars 120 forks source link

Can't cancel on a blocked read or write. #13

Closed luck02 closed 8 years ago

luck02 commented 8 years ago

I'm not 100% sure yet, but it looks like when I'm waiting on a read that will not complete (in case of canceling the transaction). There appears to be no mechanism to cancel an in progress read.

So I launch a read in a go-routine, but can't cancel it, so when I go to send a write afterwards the port seems to still be blocked on the read.

Thoughts?

luck02 commented 8 years ago

I wasn't the original author on this piece of software and I think I just found the timeout variables.

I will investigate those and re-open if need be.

Thanks.