Leonid Bugaev
c5d1112e7a
Add way to control packet capture buffer size and optimize snaplen
...
Added `—input-raw-buffer-size` - Controls size of the OS buffer (in
bytes) which holds packets until they dispatched. Default value depends
by system: in Linux around 2MB. If you see big package drop, increase
this value.
Additionally snaplen (max number of bytes being read for each packet)
now dynamically set based on interface MTU + max header size. In most
situations it should reduce package drop, because each packet will
consume less space in buffer.
2018-05-27 12:31:47 +03:00
Leonid Bugaev
0097c599df
Fix response latency calculation
...
Previously latency calcualted as Response.End - Request.Start
Where both End and Start is a last and first packets
This calcualtion is wrong, because it is total roundtrip
Correct server latency will be Response.End - Request.End
In addition added new `--input-raw-timestamp-type` option
which allows choose more precise packet timestamp source (if available).
2018-02-05 21:47:48 +02:00
田欧 and Leonid Bugaev
16b6a3cc31
Adjust package order ( #487 )
...
* format package order
* format package order
* format package order
* format package order and format code by fmt
2017-08-22 19:15:01 +05:00
Leonid Bugaev
cf402a1d0e
Add option to specify custom BPF filter
...
Can be useful in case of non standard network interfaces when like
tunnels or SPAN ports, when IP of interface does not match with IP of
packet.
Can be used to read traffic from multiple ports and interfaces at once
as well.
2017-07-27 17:56:33 +03:00
Leonid Bugaev
74225ebb22
Rename all package imports from gor to goreplay
2017-05-01 17:56:50 +02:00
Leonid Bugaev
967c380dc3
go fmt
2016-08-31 17:27:45 +03:00
Leonid Bugaev and GitHub
d34c27c3de
Track FIN packets to check for closed connection ( #350 )
...
* Track FIN packets to check for closed connection
* Add tests for FIN / fix bugs
* Fmt changes
2016-07-31 20:16:01 +03:00
Leonid Bugaev
06d129d20d
Add support for injecting real ip ( #296 )
2016-06-09 19:06:59 +06:00
Leonid Bugaev
a52f56df2b
Do not track response by default ( #279 )
...
* Do not track response by default
* Add track-response integration test
* Apply fmt
2016-05-20 21:09:39 +06:00
Leonid Bugaev
aac1345d16
Add Mac support
2016-05-13 17:31:39 +05:00
Leonid Bugaev
768c5f9726
Apply FMT
2016-05-11 16:53:23 +05:00
Leonid Bugaev
47bb312b73
Allow listening on ALL interfaces
2016-05-11 16:52:52 +05:00
Leonid Bugaev
759efce521
Add support for IPv6
2016-05-11 16:27:48 +05:00
Leonid Bugaev
6a3b791f7b
Fix memory leak and improve tests
2016-05-09 18:00:12 +05:00
Leonid Bugaev
afc8f7852e
Libpcap support and vairous bugfixes
...
Merge #260
2016-04-29 14:48:17 +05:00
Leonid Bugaev
00feb08165
Add benchmark for testing packet capture (and its quality)
2016-04-26 17:18:09 +05:00
Leonid Bugaev
4cfa33f89c
Fix tests and formatting
2016-04-20 21:40:18 +05:00
Leonid Bugaev
e5daaf067e
Fix tests
2016-04-20 21:19:20 +05:00
Leonid Bugaev
abde6ecfcb
less verbose output
2015-08-24 09:40:15 +03:00
Leonid Bugaev
43262f3336
Increase timeouts
2015-08-24 09:32:31 +03:00
Leonid Bugaev
fe91a20629
fix race
2015-08-24 09:24:31 +03:00
Leonid Bugaev
3c81723ac3
Increase timeout for large payload
2015-08-24 08:58:57 +03:00
Leonid Bugaev
d5a1eb0b9d
Increase input raw timeout
2015-08-22 11:37:01 +03:00
Leonid Bugaev
cbc27bd662
More debugging
2015-08-22 09:48:10 +03:00
Leonid Bugaev
16d7f23d98
New fixes
2015-08-22 09:41:22 +03:00
Leonid Bugaev
6974a6e278
Ensure that raw input gets closed
2015-08-20 08:56:10 +03:00
Leonid Bugaev
33cdcd4d13
Use httptest package and properly close servers
2015-08-20 07:28:13 +03:00
Leonid Bugaev
6cb4c265dd
Some debugging and race fixes
2015-08-19 21:46:45 +03:00
Leonid Bugaev
ae35f88004
Remove magic numbers
2015-08-18 17:18:02 +03:00
Leonid Bugaev
3e763c43cf
Unify all input/output plugins
2015-08-18 14:32:52 +03:00
Leonid Bugaev
a18079fa84
Improving docs
2015-08-15 10:33:50 +03:00
Leonid Bugaev
70e7d8dd29
Reduce delay of raw input
2015-08-14 23:07:46 +03:00
Leonid Bugaev
491541c2df
Response object should be separate message
2015-08-13 22:11:23 +03:00
Leonid Bugaev
2990fab635
Track original responses
2015-08-11 17:37:37 +03:00
Leonid Bugaev
d62eccb655
Make raw message expiration configurable to improve tests time
2015-07-21 10:06:10 +05:00
Leonid Bugaev
5cc4228dcd
Merge branch 'master' into input-modifier
...
Conflicts:
Dockerfile
emitter.go
http_client.go
plugins.go
proto/proto.go
2015-07-21 09:49:37 +05:00
Leonid Bugaev
0a30582131
Fix tests by adding small delay
2015-07-17 12:57:36 +05:00
Leonid Bugaev
125d9db834
Next batch
2015-07-17 11:30:43 +05:00
Leonid Bugaev
6647481fe0
Improve style and docs for proto package
2015-07-13 09:31:11 +05:00
Leonid Bugaev
32d0557a28
Reduce test file size
2015-07-11 19:07:35 +05:00
Leonid Bugaev
bb74704f9d
Rollback to use net package
2015-07-11 18:46:35 +05:00
Leonid Bugaev
d0873d1453
Try to add select
2015-07-11 18:36:00 +05:00
Leonid Bugaev
6b9c9b91e3
Improve performance of input-raw and improve handing of large payloads
2015-07-11 09:47:26 +05:00
Leonid Bugaev
8db14e334d
Merge branch 'master' into input-modifier
...
Conflicts:
Dockerfile
Makefile
output_http.go
output_http_test.go
settings.go
2015-07-09 19:58:24 +05:00
Leonid Bugaev
9a0d9166c3
Yay! http.Client replaced by own simple http client
2015-07-06 21:08:34 +05:00
Leonid Bugaev
481e4f2e74
Refactor http output settings
2015-07-02 23:08:31 +05:00
Leonid Bugaev
122f06f6c2
Add raw http client
2015-07-01 19:06:49 +05:00
Leonid Bugaev
41294f9470
Fix 100-Expect requests and refactor chunked encoding
2015-06-29 17:01:26 +05:00
Leonid Bugaev
674ffc6202
Start adding tests for traffic modifier
2015-06-28 00:16:19 +05:00
Leonid Bugaev
0fb1d83284
Simplify directory structure
2014-03-16 22:24:27 +06:00