<html><head></head><body><div class="ydpc282171fyahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div><div><span><div data-test-id="message-view-body"><div class="ydpae189cfdmsg-body ydpae189cfdP_wpofO ydpae189cfdiy_A" data-test-id="message-view-body-content"><div class="ydpae189cfdjb_0 ydpae189cfdX_6MGW ydpae189cfdN_6Fd5"><div><div id="ydpae189cfdyiv0341604333"><div><div class="ydpae189cfdyiv0341604333yahoo-style-wrap" style="font-family:Helvetica Neue, Helvetica, Arial, sans-serif;font-size:13px;"><div>Hello,</div><div><br></div><div>I
 am writing a Web Server using undertow. I am trying to set up read and 
write timeouts using below code but this does not work. I went&nbsp; through 
undertow documentation but I didn't see any other way to set up timeout 
other that what I am trying?</div><div><br></div><div><span>Undertow.Builder undertowBuilder = Undertow.builder();<br><br>undertowBuilder.addHttpListener(80, "localhost");<br>undertowBuilder.setServerOption(Options.WRITE_TIMEOUT, 10);<br></span><div><span>undertowBuilder.setServerOption(Options.READ_TIMEOUT, 20);<br></span></div><div><br></div><div><div>I also tried to set up using setSocketOptions and setWorkerOptions but that dididn't work either? As a side nots, I am not clear on the difference of these three options: ServerOptions, SocketOptions and WorkerOptions. Any help or pointers will be appreciated.<br></div><div><br></div><div>Thanks!</div><div>Prabhash Rathore<br></div><span></span></div></div></div></div></div></div></div></div></div><span class="ydpae189cfdem_N ydpae189cfden_N"></span></span></div></div></div></body></html>