Граф коммитов

24 Коммитов

Автор SHA1 Сообщение Дата
tanjunchen 7eccef6ade replace strings.TrimRight with strings.TrimSuffix and fix typo
Signed-off-by: tanjunchen <2799194073@qq.com>
2019-12-04 11:07:27 +08:00
yuxiaobo 03e83d6c30 add license in /go file
Signed-off-by: yuxiaobo <yuxiaobogo@163.com>
2019-10-21 22:30:02 +08:00
hwdef 51ba11f52f fix spelling mistake
Signed-off-by: hwdef <hwdef97@gmail.com>
2019-08-23 13:33:42 +08:00
deepthi 86474bbd59 staticcheck: packages/files missed during first pass
Signed-off-by: deepthi <deepthi@planetscale.com>
2019-03-07 11:51:31 -08:00
Rafael Chacon f992d55804 Adds read and write timeouts to mysql server
Signed-off-by: Rafael Chacon <rafael@slack-corp.com>
2018-05-11 13:15:06 -07:00
Jon Tirsen de62393fac Use all of the IPv4 DNS entries for Zookeeper
This fixes a bug which would ignore all of the IPv4 addresses except the first.

Signed-off-by: Jon Tirsen <jontirsen@squareup.com>
2018-03-15 17:02:57 +01:00
Sugu Sougoumarane 7af23e1dde license: BSD->Apache v2.0
Please refer to #2694 and #2670 for motivation and reasoning for
this change.

I've tried to follow best practice in inserting the copyright
headers. In other open source projects, not all files carry
the notice. For example documentation doesn't. I've followed
similar ground rules.

I did not change the php because there is a separate LICENSE
file there by Pixel Federation. We'll first need to notify
them our intent before changing anything there.

As for the presubmit check, it's going to be non-trivial
because of the number of exceptions, like file types,
directories and generated code. So, it will have to be
a separate project.
2017-05-06 00:38:56 -07:00
Alain Jobart 89598de963 Running gofmt -s -w on the source tree. 2015-12-15 15:38:45 -08:00
Michael Berlin 55f8d40250 netutil: Do not capitalize and use punctions in error messages as preferred by the common Go lang style guide. 2015-08-22 13:22:43 -07:00
Michael Berlin 331632bf1f netutil: Fix go vet errors.
When I commit changes through Eclipse, the git precommit hook does not get run automatically. I forgot to run yesterday and therefore these errors slipped through :(
2015-08-22 13:20:34 -07:00
Michael Berlin 5654fb0045 netutil: Remove unused methods. 2015-08-21 18:42:13 -07:00
Michael Berlin c4a8b0d7ff netutil: Support Go 1.5. Replace LookupCNAME with a double (reverse-)lookup of the machine name. 2015-08-21 18:41:37 -07:00
Alain Jobart 0ac6e67c08 Changing port to int32 in JoinHostPort.
int32 is used in all of our proto3 files for port.
2015-07-28 12:08:46 -07:00
Anthony Yeh 2ccbcdf19d Fix accepted port range for SplitHostPort. 2015-01-05 15:31:13 -08:00
Anthony Yeh 46e68fa95e Make SplitHostPort more tolerant of unescaped IPv6 addresses.
Some versions of MySQL return unescaped IPv6 addresses like "::1:456"
for things like SHOW PROCESSLIST. These fail to parse in strict mode,
since they should actually be "[::1]:456".
2015-01-05 15:02:22 -08:00
Anthony Yeh 7847cc3bcd Use JoinHostPort to handle hosts with colons. 2014-12-23 00:51:01 -08:00
Anthony Yeh df437b10d9 Use SplitHostPort to handle hosts with colons. 2014-12-23 00:51:01 -08:00
Anthony Yeh a91d8823ad Add or fix package comments for reusable packages. 2014-09-24 14:35:23 -07:00
Alain Jobart 49fff35fd4 Merge pull request #42 from msolo/zk-name-service
Zk name service
2014-04-17 09:22:42 -07:00
Mike Solomon a90e319ea5 Simplify DNS SRV record shuffling. 2014-04-15 23:18:04 -07:00
Mike Solomon 83af46b4b9 Add support for weightless round-robin A records. 2014-04-15 23:18:03 -07:00
Mike Solomon 5357826b2f Improve CNAME resolution. Improve SRV record randomization. 2014-04-15 23:18:03 -07:00
Mike Solomon f5bea5bb48 libzookeeper_mt prior to 3.4.x doesn't handle IPv6, so prune the resolved addresses we give the library for now. 2014-04-15 23:12:20 -07:00
Alain Jobart 7ac8dd32cc Creating a netutil library, moving some common code there.
LGTM Sugu, Ric.
2013-07-15 11:55:37 -07:00