Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Syncleus
apex-aprs
Commits
87831f3e
Commit
87831f3e
authored
Sep 06, 2021
by
Jeffrey Phillips Freeman
💥
Browse files
Fix: IGate reads only the qty of bytes ready to be read.
parent
b6eafa18
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
4 deletions
+7
-4
lib/apex/igate_tcp.rb
lib/apex/igate_tcp.rb
+7
-4
No files found.
lib/apex/igate_tcp.rb
View file @
87831f3e
...
...
@@ -112,10 +112,13 @@ module Apex
read_more
=
true
while
read_more
selected
=
IO
.
select
([
@aprsis_sock
],
[],
[],
0
)
if
selected
.
first
.
length
>
0
recvd_data
=
@aprsis_sock
.
gets
if
recvd_data
@data_buffer
+=
recvd_data
if
selected
.
nil?
==
false
ready_len
=
selected
.
first
.
length
if
ready_len
>
0
recvd_data
=
@aprsis_sock
.
read
(
ready_len
)
if
recvd_data
@data_buffer
+=
recvd_data
end
end
else
read_more
=
false
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment