Commit Graph

58 Commits

Author SHA1 Message Date
Zack Scholl 1f7a72467e use magic bytes instead of maxbytes to check validity 2021-01-26 10:47:14 -08:00
Khang. Nguyen Khac Nguyen 9f54f2d08f chore(comm): cleanup comm Write func
+ better handling error.
+ use Send instead of Write since we do not need number of bytes sent.
2020-10-21 15:16:42 +07:00
Zack 3396743d73
allow proxying connection (#283) 2020-10-05 08:30:45 -07:00
fooofei c877497cc9 user io.ReadFull for shorter connection read code 2020-10-04 10:37:36 +08:00
Zack Scholl a8c5bef7c0 raise max bytes to allow huge files #231 2020-09-01 09:32:03 -07:00
Zack Scholl 4aa7f05630 slightly more debugging 2020-08-27 08:10:44 -07:00
mathew 1b646d5528 Improve error reporting 2020-08-22 18:05:00 -05:00
Zack Scholl 2e7708e3cd whoops 2020-04-22 07:08:08 -07:00
Zack Scholl cb522f2f06 debugging the comm 2020-04-22 06:24:47 -07:00
Zack Scholl f9f4f291da use debug instead of warn/error addresses #205 2020-04-09 09:54:04 -07:00
Zack Scholl 9c0bc3efc3 bug fix: two read deadlines to prevent memory leak
addresses #205
2020-04-09 07:40:39 -07:00
Zack Scholl b60a841044 bug fix: prevent crazy number of bytes getting into comm 2020-03-27 09:32:41 -07:00
Zack 1f3d30c78e
Use relay as backup to find local ports (#127) 2019-05-03 13:51:27 -07:00
Zack Scholl 9f6936e1ff small fix 2019-05-01 12:08:24 -06:00
Zack Scholl e54045ef5a read until 4 bytes 2019-04-30 07:07:07 -07:00
Zack Scholl 000dfc15be fiX comm 2019-04-30 06:57:45 -07:00
Zack Scholl 330e76e09c fix 2019-04-29 21:33:13 -07:00
Zack Scholl a17f3096a0 no isclosed 2019-04-29 18:55:37 -07:00
Zack Scholl ef25c556a9 use pointers 2019-04-29 14:06:18 -06:00
Zack Scholl b9a5f450c5 simplify 2019-04-29 13:53:12 -06:00
Zack Scholl 14dd892377 tcp communication better/simpler 2019-04-27 09:20:03 -07:00
Zack Scholl cc6edd24d1 connect to TCP as early as possible 2018-10-13 06:09:55 -07:00
Zack Scholl 91e065529b fix timeout 2018-10-09 21:17:51 -07:00
Zack Scholl 42344a4c6e fix corruption 2018-10-09 21:17:51 -07:00
Zack Scholl d1e1694631 more debug 2018-10-09 21:17:47 -07:00
Zack Scholl 9d2f07f478 copy tcp writing into byte array 2018-10-09 21:17:47 -07:00
Zack Scholl b0164920c7 increase timeout 2018-10-09 21:17:47 -07:00
Zack Scholl 6955f19439 recipient can easily stop now 2018-10-09 19:01:50 -07:00
Zack Scholl 66a37ae5b2 reduce number of packets 2018-10-09 04:50:38 -07:00
Zack Scholl fdfa7f209d revert to da2b22f 2018-09-26 14:31:45 -07:00
Zack Scholl bc4bd2b0a8 don't use writer 2018-09-26 11:11:19 -07:00
Zack Scholl 8ddd7aff06 flush once 2018-09-26 11:07:17 -07:00
Zack Scholl cc0ef58b9f use netconn 2018-09-26 10:54:11 -07:00
Zack Scholl 21cfcc0bc2 use netconn 2018-09-26 10:53:47 -07:00
Zack Scholl 928b28dc80 use netconn 2018-09-26 10:51:28 -07:00
Zack Scholl 420d2be271 use netconn 2018-09-26 10:43:38 -07:00
Zack Scholl 1261a16b55 try fix 2018-09-26 10:09:11 -07:00
Zack Scholl 558d9133a6 try fix 2018-09-26 10:03:13 -07:00
Zack Scholl 82b0d2d4c0 use tcpconn 2018-09-26 07:53:46 -07:00
Zack Scholl 085dd4e4c3 implement readers and writers all around 2018-09-26 07:39:45 -07:00
Zack Scholl ea548f290c increase size 2018-09-26 06:57:52 -07:00
Zack Scholl 1a7b123519 increase size 2018-09-26 06:53:46 -07:00
Zack Scholl ae13f82c9e increase size 2018-09-26 06:53:01 -07:00
Zack Scholl f483a6ab9c increase size 2018-09-26 06:51:34 -07:00
Zack Scholl 02196654d9 update 2018-09-26 06:49:39 -07:00
Zack Scholl 44fad198e7 close correctly 2018-09-24 16:10:04 -07:00
Zack Scholl 26f0fc3319 ok windows seems to work now 2018-09-24 08:29:54 -07:00
Zack Scholl 5397634217 works on linux? 2018-09-24 07:51:56 -07:00
Zack Scholl 02f4b08929 not working dunno why 2018-09-24 07:51:24 -07:00
Zack Scholl 50c29e7334 simplify 2018-09-24 06:10:31 -07:00