Skip to content

Commit

Permalink
Increase buffer size for reading. Some APDU are a bit larger then 1024
Browse files Browse the repository at this point in the history
  • Loading branch information
alexbeltran committed Dec 22, 2017
1 parent 5caa767 commit d557100
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion listen.go
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ func (c *Client) listen() error {
i int
)

b := make([]byte, 1024)
b := make([]byte, 2048)
i, adr, err = c.listener.ReadFromUDP(b)
if err != nil {
c.log.Error(err)
Expand Down

0 comments on commit d557100

Please sign in to comment.