1
在Unix服務器上運行vertx時出現問題。當收到完整的消息時,結束處理程序不起作用。unix中的http客戶端vertx
HttpClientRequest request = client.post (8580, "localhost", "/", response ->
{
if (response.statusCode() == 200) {
response.handler (t -> {
LOG.info ("RECEIVE DATA: " + t.toString());
});
response.endHandler (t -> {
LOG.info ("endHandler: DONE"); //DO NOT PRINT ON LOG FILE
});
} else {
LOG.info ("Sent error:"+response.statusMessage());
}
});
我的源代碼演示:https://github.com/blueskyvn/vertx_client。
謝謝你的建議。這個項目是一個演示來描述我在Unix服務器上的錯誤 –