Skip to content

Commit

Permalink
remove debug messages
Browse files Browse the repository at this point in the history
  • Loading branch information
c-cube committed Apr 5, 2024
1 parent 2292128 commit e4303b2
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions src/ws/tiny_httpd_ws.ml
Original file line number Diff line number Diff line change
Expand Up @@ -307,13 +307,8 @@ module Reader = struct
self.state <- Begin;
read_rec self buf i len
| Reading_frame r ->
Printf.printf "reading len=%d from frame remaining=%d (key=%S)\n%!" len
r.remaining_bytes
(Bytes.unsafe_to_string self.header.mask_key);
let len = min len r.remaining_bytes in
let n = IO.Input.input self.ic buf i len in
Printf.printf "got n=%d bytes\n%!" n;
Printf.printf "in buf: %S\n%!" (Bytes.sub_string buf i n);

(* apply masking *)
if self.header.mask then
Expand All @@ -328,8 +323,6 @@ module Reader = struct
r.remaining_bytes <- r.remaining_bytes - n;
r.num_read <- r.num_read + n;
if r.remaining_bytes = 0 then self.state <- Begin;

Printf.printf "in buf (unmasked): %S\n%!" (Bytes.sub_string buf i n);
n
| Begin ->
read_frame_header self;
Expand Down

0 comments on commit e4303b2

Please sign in to comment.