Skip to content

Commit

Permalink
logging
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidAlphaFox committed Oct 4, 2021
1 parent 696a27a commit 3ead39f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion include/aiutp.hrl
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@
% per 5 seconds
ssthresh = ?OUTGOING_BUFFER_MAX_SIZE * ?PACKET_SIZE,
slow_start = true,
brust = true,
brust = fasle,
inbuf,
outbuf,
inque,
Expand Down
4 changes: 4 additions & 0 deletions src/aiutp_pcb.erl
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ process(_,
process_packet(#aiutp_packet{type = PktType,seq_nr = PktSeqNR,conn_id = ConnId,ack_nr = PktAckNR} = Packet,
#aiutp_pcb{state = State} = PCB)->
Now = aiutp_util:millisecond(),
if PktType == ?ST_DATA ->
io:fomart("ConnId: ~p recv packet PktSeqNR: ~p PktAckNR: ~p~n",[ConnId,PktSeqNR,PktAckNR]);
true -> ok
end,
PCB0 =
if State == ?CS_SYN_SENT ->
% if this is a syn-ack, initialize our ack_nr
Expand Down

0 comments on commit 3ead39f

Please sign in to comment.