python - How can i ignore server response to save bandwidth? -
i using server send piece of information server every second. problem other server response few kilobytes , consumes bandwidth on first server ( 2 gb in hour ). send request , ignore return ( not receive save bandwidth ) ..
use small python script task using (urllib). don't mind using other tool or other language if going make request only.
a 5k reply small stuff , below standard tcp window size of os. means if close network connection after sending request , checking first bytes of reply (to sure request has been received) server sent whole answer , packets on wire or on computer.
if cannot control (i.e. trim down) server reply notification alternative can think add server on remote machine waiting simple command , doing real request locally , sending result code. can done may bash/perl/python using example netcat/wget locally.
by way there strange in math glenn maynard correctly wrote in comment.
Comments
Post a Comment