net_write() on Sun Java 7.0

Hi All,

The appliaction on which i have been working is supported for Sun One 6.0 and 6.1. But with Sun Java 7.0 it is giving errors.

My appliaction uses net_write() to write data into Session->csd and thus send it to the client.

I have seen that for Sun Java 7.0 if i write data < 8000 bytes with net_write() it is not able to send it to the client. For a data > 8000 bytes everything works well. This behaviour is just seen for Sun Java 7.0, Sun One 6.1 and 6.0 work fine.

Then I called net_flush() after net_write() and everything started working fine. I think net_flush() is forcing the data to be sent to the client.

But net_flush() is not defined for Sun One 6.0 and so now my appliaction is not running for Sun One 6.0.

Do anyone of you know alternate function present in Sun One 6.0 NASPI which can be used to substitute net_flush() then please let me know.

Does anyone know that there has been some change in function net_write() used in Sun One 6.1 and that used in Sun Java 7.0?

[1048 byte] By [divya0916a] at [2007-11-26 23:43:48]
# 1

Your understanding is correct. net_write does not always send out the data depending upon the the data size. I am not sure if WS7.0 changed buffer size for net_write. But in normal practice, you should use net_flush() to force the data to be sent. Although I haven't check 6.0 document., I know that WS 6.0 was EOLed already. You should upgrade to WS 6.1 or 7.0 for all your applications to get proper support.

wyb2005a at 2007-7-11 15:14:21 > top of Java-index,Web & Directory Servers,Web Servers...