Leonid Bugaev
d67bc13db3
Merging PRO functionality back to OSS repo
2020-06-08 14:29:32 +03:00
Romanenko Alexey and GitHub
2d78f195d2
Make plugin not global. Revert last-chunk bytes to correct value ( #755 )
...
Make Plugins variable not global to fix concurrency in test
Revert last-chunk in chunked transfer coding to correct value (https://tools.ietf.org/html/rfc2616#section-3.6.1 ) fyi @bruce34
2020-05-27 21:03:40 +03:00
Leonid Bugaev
c48d07d2c6
Merge remote-tracking branch 'upstream/master'
2019-03-29 22:45:27 +07:00
Leonid Bugaev
d0d1527d9b
Merge remote-tracking branch 'upstream/master'
2018-08-08 22:00:20 +05:00
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
Leonid Bugaev
08efdef37a
Merge
2017-09-14 22:37:34 +05:00
Leonid Bugaev
0f8e2f2d52
Merge branch 'master' of https://github.com/buger/gor
2017-08-22 20:43:22 +05: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
163bf1f1c0
0.16 updates
2017-06-29 21:55:49 +02:00
Leonid Bugaev
74225ebb22
Rename all package imports from gor to goreplay
2017-05-01 17:56:50 +02:00
Leonid Bugaev
a6d263df1c
Add support for binary input/output
2016-07-13 16:01:25 +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
afc8f7852e
Libpcap support and vairous bugfixes
...
Merge #260
2016-04-29 14:48:17 +05:00
Leonid Bugaev
eb6166724b
Try to fix tests
2016-04-21 06:27:19 +05:00
Leonid Bugaev
7b2d7800b4
Merge remote-tracking branch 'origin/go-1.5' into go-1.5
...
# Conflicts:
# Makefile
# raw_socket_listener/listener.go
# raw_socket_listener/listener_test.go
# raw_socket_listener/tcp_message.go
2016-04-20 21:26:09 +05:00
Leonid Bugaev
e5daaf067e
Fix tests
2016-04-20 21:19:20 +05:00
Leonid Bugaev
cd83e6f9ba
Formatting fixes
2015-09-01 22:43:36 +03:00
Leonid Bugaev
661dd2026f
Fix grouting spawn loop and memory leaks
2015-09-01 20:27:26 +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
5d2f6eceea
Fixes
2015-08-19 09:19:00 +03:00
Leonid Bugaev
3e763c43cf
Unify all input/output plugins
2015-08-18 14:32:52 +03:00
Leonid Bugaev
ddd5190622
Improve docs
2015-08-15 21:05:10 +03:00
Leonid Bugaev
a18079fa84
Improving docs
2015-08-15 10:33:50 +03:00
Leonid Bugaev
1a36374c2d
Add some comments
2015-08-15 08:44:27 +03:00
Leonid Bugaev
41c1421a1b
Simulate some real-life server by adding small response delay
2015-08-15 08:36:13 +03:00
Leonid Bugaev
70e7d8dd29
Reduce delay of raw input
2015-08-14 23:07:46 +03:00
Leonid Bugaev
bb319b5fd2
Add request ID and token modifier middleware
2015-08-14 20:42:23 +03:00
Leonid Bugaev
2990fab635
Track original responses
2015-08-11 17:37:37 +03:00
Leonid Bugaev
0009555d96
Apply fmt
2015-08-11 11:08:14 +03:00
Leonid Bugaev
5098e388a2
Fix tests, now properly receive responses
2015-08-11 11:06:25 +03:00
Leonid Bugaev
9ab8b3c113
Add header to request and response
2015-08-10 22:57:18 +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
5e6f7e03a7
First middleware tests! :dance:
2015-07-17 20:58:31 +05:00
Leonid Bugaev
f812120dfc
Support only 1 middleware and rewrite tests
2015-07-10 10:24:00 +05:00
Leonid Bugaev
e64aac9364
Rename input modifier to middleware
2015-07-09 20:24:27 +05:00